mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-14 05:50:43 +00:00
[OperandBundles] Remove unncessary constructor
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
This commit is contained in:
parent
4474471834
commit
43a68c82e5
@ -1167,9 +1167,6 @@ template <typename InputTy> class OperandBundleDefT {
|
||||
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)) {}
|
||||
|
||||
|
@ -1191,7 +1191,7 @@ bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user