summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-09-21 03:09:09 +0000
committerRichard Trieu <rtrieu@google.com>2011-09-21 03:09:09 +0000
commita318b8dce6f37ee22339646726f7b03cb40b2282 (patch)
treec836b420ea8aed824806835e1a88cc4534232c4c /llvm/lib/Support
parent3d673cc3234568339bf3455e865427d9dab0cf00 (diff)
downloadbcm5719-llvm-a318b8dce6f37ee22339646726f7b03cb40b2282.tar.gz
bcm5719-llvm-a318b8dce6f37ee22339646726f7b03cb40b2282.zip
Change:
assert(!"error message"); To: assert(0 && "error message"); which is more consistant across the code base. llvm-svn: 140234
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/ConstantRange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/ConstantRange.cpp b/llvm/lib/Support/ConstantRange.cpp
index b6f82346526..c29cb53fb9c 100644
--- a/llvm/lib/Support/ConstantRange.cpp
+++ b/llvm/lib/Support/ConstantRange.cpp
@@ -55,7 +55,7 @@ ConstantRange ConstantRange::makeICmpRegion(unsigned Pred,
uint32_t W = CR.getBitWidth();
switch (Pred) {
- default: assert(!"Invalid ICmp predicate to makeICmpRegion()");
+ default: assert(0 && "Invalid ICmp predicate to makeICmpRegion()");
case CmpInst::ICMP_EQ:
return CR;
case CmpInst::ICMP_NE:
OpenPOWER on IntegriCloud