mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-07 01:47:09 +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. llvm-svn: 255000
This commit is contained in:
parent
31448f16b6
commit
8da1f95916
@ -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