aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Constants.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index 9957327bfc..c8e59609e9 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -19,6 +19,7 @@
#include "llvm/Module.h"
#include "Support/StringExtras.h"
#include <algorithm>
+#include <iostream>
using namespace llvm;
ConstantBool *ConstantBool::True = new ConstantBool(true);
@@ -120,8 +121,8 @@ Constant *Constant::getNullValue(const Type *Ty) {
case Type::ArrayTyID:
return ConstantAggregateZero::get(Ty);
default:
- // Function, Type, Label, or Opaque type?
- assert(0 && "Cannot create a null constant of that type!");
+ // Function, Label, or Opaque type?
+ assert(!"Cannot create a null constant of that type!");
return 0;
}
}