aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-09-21 02:50:14 +0000
committerRichard Trieu <rtrieu@google.com>2011-09-21 02:50:14 +0000
commit47456faf29a1eba1a3de55f3c06c82019d28ffd0 (patch)
tree15f302561e4dd0c16538e344be1c6be8e92d37b0 /lib/Sema/SemaExpr.cpp
parent243f108a7c5dc4733e9ef6b7b7c2cd0465cf2104 (diff)
Change:
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
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r--lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index 8bbfa7270f..cafed191f1 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -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;
}