summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2009-08-31 06:41:01 +0000
committerTanya Lattner <tonic@nondot.org>2009-08-31 06:41:01 +0000
commit887ea00a7c6de919b188a6b5aaddbfcdc51c9970 (patch)
tree4c27b46fe6f737ecac06b80990d43718d3daf585
parentfb8d504241b9c6be59b9325e4d748f19de6ed0f5 (diff)
Merge from mainline.
Fix TypeLoc::operator bool(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_26@80558 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/TypeLoc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h
index 5aa13a5c53..29955d37a9 100644
--- a/include/clang/AST/TypeLoc.h
+++ b/include/clang/AST/TypeLoc.h
@@ -38,7 +38,7 @@ public:
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);