From 19a97e27a545959ee9b395a96140661148a6b5b0 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 29 Aug 2009 22:39:19 +0000 Subject: [PATCH] Fix TypeLoc::operator bool(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80447 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); -- 2.40.0