aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-06-06 16:36:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-06-06 16:36:56 +0000
commit29aed5067f7fed62152613e217865e01b0ff8cff (patch)
tree93f2e31ad36bf885e6f3552ef636ddb75dd46b12 /lib/AST/ASTContext.cpp
parent88a9296de1aff76228cf4b72eef815ac867a9b7c (diff)
PR37680: fix faulty assertion condition.
When looking up a template name, we can find an overload set containing a function template and an unresolved non-type using declaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index c759c96be5..64f45af618 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -7292,6 +7292,7 @@ ASTContext::getOverloadedTemplateName(UnresolvedSetIterator Begin,
for (UnresolvedSetIterator I = Begin; I != End; ++I) {
NamedDecl *D = *I;
assert(isa<FunctionTemplateDecl>(D) ||
+ isa<UnresolvedUsingValueDecl>(D) ||
(isa<UsingShadowDecl>(D) &&
isa<FunctionTemplateDecl>(D->getUnderlyingDecl())));
*Storage++ = D;