]> granicus.if.org Git - clang/commitdiff
Change:
authorRichard Trieu <rtrieu@google.com>
Wed, 21 Sep 2011 02:50:14 +0000 (02:50 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 21 Sep 2011 02:50:14 +0000 (02:50 +0000)
  assert(!"error message");

To:

  assert(0 && "error message");

which is more consistant across the code base.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140232 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 8bbfa7270f6c5d9f4fabd7a8dc5e937b0e7df79d..cafed191f15c9ef62e6eb00251ade2a8b281a40b 100644 (file)
@@ -8936,7 +8936,7 @@ ExprResult Sema::ActOnGNUNullExpr(SourceLocation TokenLoc) {
   else if (pw == Context.getTargetInfo().getLongLongWidth())
     Ty = Context.LongLongTy;
   else {
-    assert(!"I don't know size of pointer!");
+    assert(0 && "I don't know size of pointer!");
     Ty = Context.IntTy;
   }