summaryrefslogtreecommitdiff
path: root/lib/Support/ConstantRange.cpp
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
commit23946fcaaefaf3c1a9d1ef86a3786f622c005f1a (patch)
treebd34e99804c9f71db55dcaa7e3cc05ff704268aa /lib/Support/ConstantRange.cpp
parent2464810ac27af8dd8b11da7519b719c254854c19 (diff)
downloadllvm-23946fcaaefaf3c1a9d1ef86a3786f622c005f1a.tar.gz
llvm-23946fcaaefaf3c1a9d1ef86a3786f622c005f1a.tar.bz2
llvm-23946fcaaefaf3c1a9d1ef86a3786f622c005f1a.tar.xz
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/llvm/trunk@140234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ConstantRange.cpp')
-rw-r--r--lib/Support/ConstantRange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp
index b6f8234652..c29cb53fb9 100644
--- a/lib/Support/ConstantRange.cpp
+++ b/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: