[OperandBundles] Tighten OperandBundleDef's interface; NFC
llvm-svn: 253446
This commit is contained in:
@@ -5120,10 +5120,7 @@ std::error_code BitcodeReader::parseFunctionBody(Function *F) {
|
||||
if (Record.size() < 1 || Record[0] >= BundleTags.size())
|
||||
return error("Invalid record");
|
||||
|
||||
OperandBundles.emplace_back();
|
||||
OperandBundles.back().Tag = BundleTags[Record[0]];
|
||||
|
||||
std::vector<Value *> &Inputs = OperandBundles.back().Inputs;
|
||||
std::vector<Value *> Inputs;
|
||||
|
||||
unsigned OpNum = 1;
|
||||
while (OpNum != Record.size()) {
|
||||
@@ -5133,6 +5130,7 @@ std::error_code BitcodeReader::parseFunctionBody(Function *F) {
|
||||
Inputs.push_back(Op);
|
||||
}
|
||||
|
||||
OperandBundles.emplace_back(BundleTags[Record[0]], std::move(Inputs));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user