From 887ea00a7c6de919b188a6b5aaddbfcdc51c9970 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Mon, 31 Aug 2009 06:41:01 +0000 Subject: 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 --- include/clang/AST/TypeLoc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3