]> granicus.if.org Git - clang/commitdiff
Fix an assertion.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 3 Nov 2010 22:45:13 +0000 (22:45 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 3 Nov 2010 22:45:13 +0000 (22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118202 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/FrontendAction.h

index 773543ac06a5ca88fd073f2062639bbdda3ac60a..f659b2f42e91896913f200e9dff1a3c62d783edb 100644 (file)
@@ -130,7 +130,7 @@ public:
   }
 
   ASTUnit &getCurrentASTUnit() const {
-    assert(!CurrentASTUnit && "No current AST unit!");
+    assert(CurrentASTUnit && "No current AST unit!");
     return *CurrentASTUnit;
   }