mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2206,8 +2206,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
||||
EXTRACTVALIdx.push_back((unsigned)Index);
|
||||
}
|
||||
|
||||
I = ExtractValueInst::Create(Agg,
|
||||
EXTRACTVALIdx.begin(), EXTRACTVALIdx.end());
|
||||
I = ExtractValueInst::Create(Agg, EXTRACTVALIdx);
|
||||
InstructionList.push_back(I);
|
||||
break;
|
||||
}
|
||||
@ -2231,8 +2230,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
|
||||
INSERTVALIdx.push_back((unsigned)Index);
|
||||
}
|
||||
|
||||
I = InsertValueInst::Create(Agg, Val,
|
||||
INSERTVALIdx.begin(), INSERTVALIdx.end());
|
||||
I = InsertValueInst::Create(Agg, Val, INSERTVALIdx);
|
||||
InstructionList.push_back(I);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user