[cfe-commits] r80447 - /cfe/trunk/include/clang/AST/TypeLoc.h

Argiris Kirtzidis akyrtzi at gmail.com
Sat Aug 29 15:39:19 PDT 2009


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);





More information about the cfe-commits mailing list