[cfe-commits] r89624 - /cfe/trunk/lib/Sema/Lookup.h
John McCall
rjmccall at apple.com
Sun Nov 22 12:57:36 PST 2009
Author: rjmccall
Date: Sun Nov 22 14:57:36 2009
New Revision: 89624
URL: http://llvm.org/viewvc/llvm-project?rev=89624&view=rev
Log:
Fix LookupResult's sanity-check to handle shadow decls.
Modified:
cfe/trunk/lib/Sema/Lookup.h
Modified: cfe/trunk/lib/Sema/Lookup.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Lookup.h?rev=89624&r1=89623&r2=89624&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Lookup.h (original)
+++ cfe/trunk/lib/Sema/Lookup.h Sun Nov 22 14:57:36 2009
@@ -450,7 +450,8 @@
assert(ResultKind != NotFound || Decls.size() == 0);
assert(ResultKind != Found || Decls.size() == 1);
assert(ResultKind != FoundOverloaded || Decls.size() > 1 ||
- (Decls.size() == 1 && isa<FunctionTemplateDecl>(Decls[0])));
+ (Decls.size() == 1 &&
+ isa<FunctionTemplateDecl>(Decls[0]->getUnderlyingDecl())));
assert(ResultKind != FoundUnresolvedValue || sanityCheckUnresolved());
assert(ResultKind != Ambiguous || Decls.size() > 1 ||
(Decls.size() == 1 && Ambiguity == AmbiguousBaseSubobjects));
More information about the cfe-commits
mailing list