From cc4b6ec2b9ee8bcb2fa190ec70946ee172e986b8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Jul 2002 00:14:27 +0000 Subject: ConstExpr::getelementptr now takes a vector of Constants not Values git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2948 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Reader/ConstantReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bytecode/Reader/ConstantReader.cpp') diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index 68d6a62249..6bbeb8680b 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/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(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 IdxList(argVec.begin()+1, argVec.end()); + std::vector 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); -- cgit v1.2.3-18-g5258