[llvm-commits] [llvm] r50992 - /llvm/trunk/lib/VMCore/Instructions.cpp

Nate Begeman natebegeman at mac.com
Mon May 12 13:01:57 PDT 2008


Author: sampo
Date: Mon May 12 15:01:56 2008
New Revision: 50992

URL: http://llvm.org/viewvc/llvm-project?rev=50992&view=rev
Log:
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

Modified:
    llvm/trunk/lib/VMCore/Instructions.cpp

Modified: llvm/trunk/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instructions.cpp?rev=50992&r1=50991&r2=50992&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Instructions.cpp (original)
+++ llvm/trunk/lib/VMCore/Instructions.cpp Mon May 12 15:01:56 2008
@@ -2335,7 +2335,7 @@
 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,
                  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) {





More information about the llvm-commits mailing list