mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 02:01:36 +00:00
Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.
llvm-svn: 135040
This commit is contained in:
1 parent
00e887b96f
commit
57aa636794
25 files changed
+188
-425
No files matched your search
@@ -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