[cfe-commits] r129438 - /cfe/trunk/lib/Sema/SemaLookup.cpp

Axel Naumann Axel.Naumann at cern.ch
Wed Apr 13 06:19:46 PDT 2011

Author: axel
Date: Wed Apr 13 08:19:46 2011
New Revision: 129438

URL: http://llvm.org/viewvc/llvm-project?rev=129438&view=rev
>From Vassil Vassilev: Give external source's last resort lookup a chance, even if an identifier could resolve to a builtin.


Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=129438&r1=129437&r2=129438&view=diff
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Wed Apr 13 08:19:46 2011
@@ -1129,8 +1129,8 @@
   // If we didn't find a use of this identifier, and if the identifier
   // corresponds to a compiler builtin, create the decl object for the builtin
   // now, injecting it into translation unit scope, and return it.
-  if (AllowBuiltinCreation)
-    return LookupBuiltin(*this, R);
+  if (AllowBuiltinCreation && LookupBuiltin(*this, R))
+    return true;
   // If we didn't find a use of this identifier, the ExternalSource 
   // may be able to handle the situation. 

More information about the cfe-commits mailing list