[llvm-branch-commits] [cfe-branch] r80558 - /cfe/branches/release_26/include/clang/AST/TypeLoc.h
Tanya Lattner
tonic at nondot.org
Sun Aug 30 23:41:01 PDT 2009
Author: tbrethou
Date: Mon Aug 31 01:41:01 2009
New Revision: 80558
URL: http://llvm.org/viewvc/llvm-project?rev=80558&view=rev
Log:
Merge from mainline.
Fix TypeLoc::operator bool().
Modified:
cfe/branches/release_26/include/clang/AST/TypeLoc.h
Modified: cfe/branches/release_26/include/clang/AST/TypeLoc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_26/include/clang/AST/TypeLoc.h?rev=80558&r1=80557&r2=80558&view=diff
==============================================================================
--- cfe/branches/release_26/include/clang/AST/TypeLoc.h (original)
+++ cfe/branches/release_26/include/clang/AST/TypeLoc.h Mon Aug 31 01:41:01 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 llvm-branch-commits
mailing list