aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-05-12 20:01:56 +0000
committerNate Begeman <natebegeman@mac.com>2008-05-12 20:01:56 +0000
commit4927c1da22751d08e596d6a0bf03ec1b89358f7b (patch)
tree45da6f193db2857b02eb7a9c5cf8e4415f0f7efa /lib/VMCore/Instructions.cpp
parentef7be08d74f0a08484b852934226eae22eb58c8a (diff)
downloadexternal_llvm-4927c1da22751d08e596d6a0bf03ec1b89358f7b.zip
external_llvm-4927c1da22751d08e596d6a0bf03ec1b89358f7b.tar.gz
external_llvm-4927c1da22751d08e596d6a0bf03ec1b89358f7b.tar.bz2
Hard code CmpInst back to i1 for now while I go track down what in the bitcode reader/writer is assuming i1
This was breaking a bunch of tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r--lib/VMCore/Instructions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index d34aa59..7650ce4 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -2335,7 +2335,7 @@ BitCastInst::BitCastInst(
CmpInst::CmpInst(const Type *ty, OtherOps op, unsigned short predicate,
Value *LHS, Value *RHS, const std::string &Name,
Instruction *InsertBefore)
- : Instruction(ty, op,
+ : Instruction(Type::Int1Ty, op,
OperandTraits<CmpInst>::op_begin(this),
OperandTraits<CmpInst>::operands(this),
InsertBefore) {
@@ -2348,7 +2348,7 @@ CmpInst::CmpInst(const Type *ty, OtherOps op, unsigned short predicate,
CmpInst::CmpInst(const Type *ty, OtherOps op, unsigned short predicate,
Value *LHS, Value *RHS, const std::string &Name,
BasicBlock *InsertAtEnd)
- : Instruction(ty, op,
+ : Instruction(Type::Int1Ty, op,
OperandTraits<CmpInst>::op_begin(this),
OperandTraits<CmpInst>::operands(this),
InsertAtEnd) {