[cfe-commits] r62346 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Chris Lattner
sabre at nondot.org
Fri Jan 16 11:44:00 PST 2009
Author: lattner
Date: Fri Jan 16 13:44:00 2009
New Revision: 62346
URL: http://llvm.org/viewvc/llvm-project?rev=62346&view=rev
Log:
silence release-assert warning.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=62346&r1=62345&r2=62346&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Jan 16 13:44:00 2009
@@ -275,11 +275,11 @@
Kind = LookupCriteria::Ordinary;
} else if (NSI == Decl::IDNS_Tag)
Kind = LookupCriteria::Tag;
- else if (NSI == Decl::IDNS_Member)
+ else {
+ assert(NSI == Decl::IDNS_Member &&"Unable to grok LookupDecl NSI argument");
Kind = LookupCriteria::Member;
- else
- assert(false && "Unable to grok LookupDecl NSI argument");
-
+ }
+
if (LookupCtx)
return LookupQualifiedName(const_cast<DeclContext *>(LookupCtx), Name,
LookupCriteria(Kind, !LookInParent,
More information about the cfe-commits
mailing list