diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index e6ebc87d1e0..737b46fbe33 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -1160,18 +1160,18 @@ template class OperandBundleDefT { std::vector Inputs; public: - explicit OperandBundleDefT(StringRef Tag, std::vector &&Inputs) - : Tag(Tag), Inputs(Inputs) {} + explicit OperandBundleDefT(StringRef Tag, std::vector Inputs) + : Tag(Tag), Inputs(std::move(Inputs)) {} - explicit OperandBundleDefT(std::string &&Tag, std::vector &&Inputs) - : Tag(Tag), Inputs(Inputs) {} + explicit OperandBundleDefT(std::string Tag, std::vector Inputs) + : Tag(std::move(Tag)), Inputs(std::move(Inputs)) {} explicit OperandBundleDefT(const OperandBundleUse &OBU) { Tag = OBU.getTagName(); Inputs.insert(Inputs.end(), OBU.Inputs.begin(), OBU.Inputs.end()); } - ArrayRef getInputs() const { return Inputs; } + ArrayRef inputs() const { return Inputs; } typedef typename std::vector::const_iterator input_iterator; size_t input_size() const { return Inputs.size(); }