Author: faisalv Date: Tue Apr 24 20:28:23 2018 New Revision: 330796 URL: http://llvm.org/viewvc/llvm-project?rev=330796&view=rev Log: 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. Modified: cfe/trunk/include/clang/Sema/DeclSpec.h Modified: cfe/trunk/include/clang/Sema/DeclSpec.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/DeclSpec.h?rev=330796&r1=330795&r2=330796&view=diff ============================================================================== --- cfe/trunk/include/clang/Sema/DeclSpec.h (original) +++ cfe/trunk/include/clang/Sema/DeclSpec.h Tue Apr 24 20:28:23 2018 @@ -520,6 +520,8 @@ public: return cast_or_null<ConceptDeclTy>(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 <class ConceptDeclTy = ConceptDecl> - void setConceptRep(ConceptDecl *Rep) { + void setConceptRep(ConceptDeclTy *Rep) { static_assert(std::is_same<ConceptDeclTy, ConceptDecl>::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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits