diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-11-18 08:30:07 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-11-18 08:30:07 +0000 |
commit | f79d3449c5c4a455eb67cdc2f170f82c6e3a527f (patch) | |
tree | 581abd59bb423c04bc4e51ca8161ccf73b2eb26e /llvm/lib/Bitcode | |
parent | 64dab75c418ddde2ac7a36e9355c2ef425dc86b3 (diff) | |
download | bcm5719-llvm-f79d3449c5c4a455eb67cdc2f170f82c6e3a527f.tar.gz bcm5719-llvm-f79d3449c5c4a455eb67cdc2f170f82c6e3a527f.zip |
[OperandBundles] Tighten OperandBundleDef's interface; NFC
llvm-svn: 253446
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 3a2d5be21db..9210042e6ed 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -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; } } |