The StringRef constructor is unnecessary (since we're converting to
std::string anyway), and having it requires an explicit call to
StringRef's or std::string's constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255000
91177308-0d34-0410-b5e6-
96231b3b80d8
std::vector<InputTy> Inputs;
public:
- explicit OperandBundleDefT(StringRef Tag, std::vector<InputTy> Inputs)
- : Tag(Tag), Inputs(std::move(Inputs)) {}
-
explicit OperandBundleDefT(std::string Tag, std::vector<InputTy> Inputs)
: Tag(std::move(Tag)), Inputs(std::move(Inputs)) {}
MergedDeoptArgs.insert(MergedDeoptArgs.end(), ChildOB.Inputs.begin(),
ChildOB.Inputs.end());
- OpDefs.emplace_back(StringRef("deopt"), std::move(MergedDeoptArgs));
+ OpDefs.emplace_back("deopt", std::move(MergedDeoptArgs));
}
Instruction *NewI = nullptr;