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
This commit is contained in:
parent
997e64f8a6
commit
699f45887f
|
|
@ -520,6 +520,8 @@ public:
|
||||||
|
|
||||||
return cast_or_null<ConceptDeclTy>(DeclRep);
|
return cast_or_null<ConceptDeclTy>(DeclRep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Expr *getRepAsExpr() const {
|
Expr *getRepAsExpr() const {
|
||||||
assert(isExprRep((TST) TypeSpecType) && "DeclSpec does not store an expr");
|
assert(isExprRep((TST) TypeSpecType) && "DeclSpec does not store an expr");
|
||||||
return ExprRep;
|
return ExprRep;
|
||||||
|
|
@ -697,7 +699,7 @@ public:
|
||||||
// This function can only be instantiated with ConceptDecl. We made it a
|
// 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 so that ConceptDecl only has to be defined where this is called.
|
||||||
template <class ConceptDeclTy = ConceptDecl>
|
template <class ConceptDeclTy = ConceptDecl>
|
||||||
void setConceptRep(ConceptDecl *Rep) {
|
void setConceptRep(ConceptDeclTy *Rep) {
|
||||||
static_assert(std::is_same<ConceptDeclTy, ConceptDecl>::value,
|
static_assert(std::is_same<ConceptDeclTy, ConceptDecl>::value,
|
||||||
"Must only be instantiated with ConceptDecl");
|
"Must only be instantiated with ConceptDecl");
|
||||||
assert(isConceptSpecified() && "DeclSpec does not store a concept");
|
assert(isConceptSpecified() && "DeclSpec does not store a concept");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue