From 699f45887f1dba5ef668e37462bce6eac80b01b1 Mon Sep 17 00:00:00 2001 From: Faisal Vali Date: Wed, 25 Apr 2018 03:28:23 +0000 Subject: [PATCH] Fix rC330794 - a parameter that should have been dependent was inadvertently not - and compiled in MSVC - but not so for the other bots. The fix was to make it dependent as intended. llvm-svn: 330796 --- clang/include/clang/Sema/DeclSpec.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Sema/DeclSpec.h b/clang/include/clang/Sema/DeclSpec.h index d693012..6786a3f 100644 --- a/clang/include/clang/Sema/DeclSpec.h +++ b/clang/include/clang/Sema/DeclSpec.h @@ -520,6 +520,8 @@ public: return cast_or_null(DeclRep); } + + Expr *getRepAsExpr() const { assert(isExprRep((TST) TypeSpecType) && "DeclSpec does not store an expr"); return ExprRep; @@ -697,7 +699,7 @@ public: // This function can only be instantiated with ConceptDecl. We made it a // template so that ConceptDecl only has to be defined where this is called. template - void setConceptRep(ConceptDecl *Rep) { + void setConceptRep(ConceptDeclTy *Rep) { static_assert(std::is_same::value, "Must only be instantiated with ConceptDecl"); assert(isConceptSpecified() && "DeclSpec does not store a concept"); @@ -706,7 +708,7 @@ public: "once, and usually right after DeclRep was set to null"); DeclRep = Rep; } - + void UpdateTypeRep(ParsedType Rep) { assert(isTypeRep((TST) TypeSpecType)); TypeRep = Rep; -- 2.7.4