diff options
author | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:13:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-06-25 16:13:24 +0000 |
commit | 7e70829632f82de15db187845666aaca6e04b792 (patch) | |
tree | 48dd2d804e7ebec9a3cbd8bf229cb2a2aa20dce5 /lib/VMCore/iBranch.cpp | |
parent | 0b12b5f50ec77a8bd01b92d287c52d748619bb4b (diff) | |
download | external_llvm-7e70829632f82de15db187845666aaca6e04b792.zip external_llvm-7e70829632f82de15db187845666aaca6e04b792.tar.gz external_llvm-7e70829632f82de15db187845666aaca6e04b792.tar.bz2 |
MEGAPATCH checkin.
For details, See: docs/2002-06-25-MegaPatchInfo.txt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iBranch.cpp')
-rw-r--r-- | lib/VMCore/iBranch.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/VMCore/iBranch.cpp b/lib/VMCore/iBranch.cpp index 7a352ee..fe5c060 100644 --- a/lib/VMCore/iBranch.cpp +++ b/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!!!!"); } |