summaryrefslogtreecommitdiff
path: root/lib/VMCore/Constants.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/VMCore/Constants.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/VMCore/Constants.cpp')
-rw-r--r--lib/VMCore/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index ba309d9ca0..a84a046bb9 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -105,7 +105,7 @@ Constant *Constant::getNullValue(Type *Ty) {
return ConstantAggregateZero::get(Ty);
default:
// Function, Label, or Opaque type?
- assert(!"Cannot create a null constant of that type!");
+ assert(0 && "Cannot create a null constant of that type!");
return 0;
}
}