From 347e31c052d5a36890c484b6753d480ac8f0062f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 28 Mar 2020 19:21:56 +0100 Subject: [PATCH] Remove constexpr that MSVC doesn't like --- clang/include/clang/Sema/ParsedAttr.h | 4 ++-- clang/utils/TableGen/ClangAttrEmitter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/include/clang/Sema/ParsedAttr.h b/clang/include/clang/Sema/ParsedAttr.h index 911778457331..21e030fe5134 100644 --- a/clang/include/clang/Sema/ParsedAttr.h +++ b/clang/include/clang/Sema/ParsedAttr.h @@ -67,8 +67,8 @@ struct ParsedAttrInfo { }; ArrayRef Spellings; - constexpr ParsedAttrInfo(AttributeCommonInfo::Kind AttrKind = - AttributeCommonInfo::NoSemaHandlerAttribute) + ParsedAttrInfo(AttributeCommonInfo::Kind AttrKind = + AttributeCommonInfo::NoSemaHandlerAttribute) : AttrKind(AttrKind), NumArgs(0), OptArgs(0), HasCustomParsing(0), IsTargetSpecific(0), IsType(0), IsStmt(0), IsKnownToGCC(0), IsSupportedByPragmaAttribute(0) {} diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index f455ef3b364b..e9f91c685ee4 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -3739,7 +3739,7 @@ void EmitClangAttrParsedAttrImpl(RecordKeeper &Records, raw_ostream &OS) { } OS << "struct ParsedAttrInfo" << I->first << " final : public ParsedAttrInfo {\n"; - OS << " constexpr ParsedAttrInfo" << I->first << "() {\n"; + OS << " ParsedAttrInfo" << I->first << "() {\n"; OS << " AttrKind = ParsedAttr::AT_" << AttrName << ";\n"; emitArgInfo(Attr, OS); OS << " HasCustomParsing = ";