mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 16:53:02 +00:00
added std:: to vector
llvm-svn: 2916
This commit is contained in:
parent
1c8b99ff5a
commit
c01ca9bfd4
@ -187,7 +187,7 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf,
|
||||
if (read_vbr(Buf, EndBuf, isExprNumArgs)) return failure(true);
|
||||
if (isExprNumArgs) {
|
||||
unsigned opCode;
|
||||
vector<Constant*> argVec;
|
||||
std::vector<Constant*> argVec;
|
||||
argVec.reserve(isExprNumArgs);
|
||||
|
||||
if (read_vbr(Buf, EndBuf, opCode)) return failure(true);
|
||||
@ -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
|
||||
vector<Value*> IdxList(argVec.begin()+1, argVec.end());
|
||||
std::vector<Value*> 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user