[OperandBundles] Tighten OperandBundleDef's interface; NFC

llvm-svn: 253446
This commit is contained in:
Sanjoy Das
2015-11-18 08:30:07 +00:00
parent 64dab75c41
commit f79d3449c5
4 changed files with 25 additions and 20 deletions

View File

@@ -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;
}
}