diff options
-rw-r--r-- | include/clang/AST/TypeLoc.h | 2 |
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); |