assert(!"error message");

To:

  assert(0 && "error message");

which is more consistant across the code base.

llvm-svn: 140232
This commit is contained in:
Richard Trieu 2011-09-21 02:50:14 +00:00
parent e4f3180fec
commit cf24656ea4
1 changed files with 1 additions and 1 deletions

View 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;
}