[OperandBundles] Tighten OperandBundleDef's interface; NFC

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

No files matched your search

+2 -4
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;
}
}