Author: akirtzidis
Date: Sat Aug 29 17:39:19 2009
New Revision: 80447

URL: http://llvm.org/viewvc/llvm-project?rev=80447&view=rev
Log:
Fix TypeLoc::operator bool().

Modified:
    cfe/trunk/include/clang/AST/TypeLoc.h

Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=80447&r1=80446&r2=80447&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Sat Aug 29 17:39:19 2009
@@ -38,7 +38,7 @@
   TypeLoc() : Data(0) { }
 
   bool isNull() const { return Ty.isNull(); }
-  operator bool() const { return isNull(); }
+  operator bool() const { return !isNull(); }
 
   /// \brief Returns the size of type source info data block for the given 
type.
   static unsigned getFullDataSizeForType(QualType Ty);


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to