mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01: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. llvm-svn: 255000
This commit is contained in:
parent
c83f6a4411
commit
90bb44dfe3
@ -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