summaryrefslogtreecommitdiffstats
path: root/lib/VMCore
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
commit18e4e8500f2913b8db629d9c28353023735af732 (patch)
tree45da6f193db2857b02eb7a9c5cf8e4415f0f7efa /lib/VMCore
parentad4196b44ae714a6b95e238d9d96303df74b0429 (diff)
downloadexternal_llvm-18e4e8500f2913b8db629d9c28353023735af732.zip
external_llvm-18e4e8500f2913b8db629d9c28353023735af732.tar.gz
external_llvm-18e4e8500f2913b8db629d9c28353023735af732.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')
-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) {