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.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/VMCore/iBranch.cpp b/llvm/lib/VMCore/iBranch.cpp
index 7a352eeb46e..fe5c060c8d8 100644
--- a/llvm/lib/VMCore/iBranch.cpp
+++ b/llvm/lib/VMCore/iBranch.cpp
@@ -7,10 +7,7 @@
#include "llvm/iTerminators.h"
#include "llvm/BasicBlock.h"
-#ifndef NDEBUG
-#include "llvm/Type.h" // Only used for assertions...
-#include <iostream>
-#endif
+#include "llvm/Type.h"
BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond)
: TerminatorInst(Instruction::Br) {
@@ -24,14 +21,6 @@ BranchInst::BranchInst(BasicBlock *True, BasicBlock *False, Value *Cond)
assert(!!False == !!Cond &&
"Either both cond and false or neither can be specified!");
-
-#ifndef NDEBUG
- if (Cond != 0 && Cond->getType() != Type::BoolTy) {
- std::cerr << "Bad Condition: ";
- Cond->dump();
- std::cerr << "\n";
- }
-#endif
assert((Cond == 0 || Cond->getType() == Type::BoolTy) &&
"May only branch on boolean predicates!!!!");
}
OpenPOWER on IntegriCloud