summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/iBranch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/VMCore/iBranch.cpp')
-rw-r--r--llvm/lib/VMCore/iBranch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/iBranch.cpp b/llvm/lib/VMCore/iBranch.cpp
index d0f437e293b..f020ab62137 100644
--- a/llvm/lib/VMCore/iBranch.cpp
+++ b/llvm/lib/VMCore/iBranch.cpp
@@ -10,6 +10,7 @@
#ifndef NDEBUG
#include "llvm/Type.h" // Only used for assertions...
#include "llvm/Assembly/Writer.h"
+#include <iostream>
#endif
BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond)
@@ -27,7 +28,7 @@ BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond)
#ifndef NDEBUG
if (Cond != 0 && Cond->getType() != Type::BoolTy)
- cerr << "Bad Condition: " << Cond << endl;
+ std::cerr << "Bad Condition: " << Cond << "\n";
#endif
assert((Cond == 0 || Cond->getType() == Type::BoolTy) &&
"May only branch on boolean predicates!!!!");
OpenPOWER on IntegriCloud