[llvm-commits] [llvm] r49597 - /llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp
Gabor Greif
ggreif at gmail.com
Sat Apr 12 16:00:38 PDT 2008
Author: ggreif
Date: Sat Apr 12 18:00:38 2008
New Revision: 49597
URL: http://llvm.org/viewvc/llvm-project?rev=49597&view=rev
Log:
fix BranchInst copy ctor
Modified:
llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp
Modified: llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp?rev=49597&r1=49596&r2=49597&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/VMCore/Instructions.cpp Sat Apr 12 18:00:38 2008
@@ -660,7 +660,9 @@
BranchInst::BranchInst(const BranchInst &BI) :
- TerminatorInst(Type::VoidTy, Instruction::Br, /*Ops*/NULL, BI.getNumOperands()) {
+ TerminatorInst(Type::VoidTy, Instruction::Br,
+ OperandTraits<BranchInst>::op_end(this) - BI.getNumOperands(),
+ BI.getNumOperands()) {
OperandList[0].init(BI.getOperand(0), this);
if (BI.getNumOperands() != 1) {
assert(BI.getNumOperands() == 3 && "BR can have 1 or 3 operands!");
More information about the llvm-commits
mailing list