diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-18 00:14:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-18 00:14:27 +0000 |
commit | 980ddf5854a07d32594b43ef3304483fbccefcf8 (patch) | |
tree | 1d1af8aaa9e038fb35d39bad10b99a98bd0b433a /llvm/lib/Bytecode/Reader/ConstantReader.cpp | |
parent | 7af3ee9840a8e8b343f355d2eea5c9167997207c (diff) | |
download | bcm5719-llvm-980ddf5854a07d32594b43ef3304483fbccefcf8.tar.gz bcm5719-llvm-980ddf5854a07d32594b43ef3304483fbccefcf8.zip |
ConstExpr::getelementptr now takes a vector of Constants not Values
llvm-svn: 2948
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ConstantReader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/ConstantReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/ConstantReader.cpp b/llvm/lib/Bytecode/Reader/ConstantReader.cpp index 68d6a62249d..6bbeb8680b1 100644 --- a/llvm/lib/Bytecode/Reader/ConstantReader.cpp +++ b/llvm/lib/Bytecode/Reader/ConstantReader.cpp @@ -204,7 +204,7 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, // Get the arg value from its slot if it exists, otherwise a placeholder Value *Val = getValue(argTy, argValSlot, false); - Constant* C; + Constant *C; if (Val) { if (!(C = dyn_cast<Constant>(Val))) return failure(true); BCR_TRACE(5, "Constant Found in ValueTable!\n"); @@ -218,7 +218,7 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, if (isExprNumArgs == 1) { // All one-operand expressions V = ConstantExpr::get(opCode, argVec[0], Ty); } else if (opCode == Instruction::GetElementPtr) { // GetElementPtr - std::vector<Value*> IdxList(argVec.begin()+1, argVec.end()); + std::vector<Constant*> IdxList(argVec.begin()+1, argVec.end()); V = ConstantExpr::get(opCode, argVec[0], IdxList, Ty); } else { // All other 2-operand expressions V = ConstantExpr::get(opCode, argVec[0], argVec[1], Ty); |