diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-31 01:11:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-31 01:11:13 +0000 |
commit | ccf22fb1825509adbf4caf15f18fd8f0321a8cbe (patch) | |
tree | 48ca99cdc5ce5e139ece316ae60b9f13088525ad /llvm/lib/Bytecode | |
parent | 2ca79d339edbb2101b9b8a887db7c54408b9b882 (diff) | |
download | bcm5719-llvm-ccf22fb1825509adbf4caf15f18fd8f0321a8cbe.tar.gz bcm5719-llvm-ccf22fb1825509adbf4caf15f18fd8f0321a8cbe.zip |
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! :)
llvm-svn: 19943
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index a36aa995097..cf68d678e2c 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -38,8 +38,11 @@ namespace { 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) { + } }; } |