[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Jan 30 17:11:29 PST 2005
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.151 -> 1.152
---
Log message:
Fix the regressions my User changes introduced. Apparently some parts of
LLVM make the very reasonable assumption that constant expressions will
have at least one operand! :)
---
Diffs of the changes: (+4 -1)
Reader.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.151 llvm/lib/Bytecode/Reader/Reader.cpp:1.152
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.151 Fri Jan 28 18:36:19 2005
+++ llvm/lib/Bytecode/Reader/Reader.cpp Sun Jan 30 19:11:13 2005
@@ -38,8 +38,11 @@
ConstantPlaceHolder(); // DO NOT IMPLEMENT
void operator=(const ConstantPlaceHolder &); // DO NOT IMPLEMENT
public:
+ Use Op;
ConstantPlaceHolder(const Type *Ty)
- : ConstantExpr(Ty, Instruction::UserOp1, 0, 0) {}
+ : ConstantExpr(Ty, Instruction::UserOp1, &Op, 1),
+ Op(UndefValue::get(Type::IntTy), this) {
+ }
};
}
More information about the llvm-commits
mailing list