]> granicus.if.org Git - clang/commitdiff
Make LookupResult::resolveKind() robust against NotFoundInCurrentInstantiation.
authorJohn McCall <rjmccall@apple.com>
Fri, 15 Jan 2010 21:27:01 +0000 (21:27 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 15 Jan 2010 21:27:01 +0000 (21:27 +0000)
Fixes PR 6049.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93557 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index cda245deba13697f5bdbae91fc0f414ca75ba57f..70baefdae77a1d15d94b7e07521dac6af0bb70e1 100644 (file)
@@ -317,7 +317,7 @@ void LookupResult::resolveKind() {
  
   // Fast case: no possible ambiguity.
   if (N == 0) {
-    assert(ResultKind == NotFound);
+    assert(ResultKind == NotFound || ResultKind == NotFoundInCurrentInstantiation);
     return;
   }