summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-12-08 03:50:32 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-12-08 03:50:32 +0000
commit8da1f95916588922dd3ef277602aa93891106902 (patch)
tree572a162364d4d382b741514b913764e8fb2c1451 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent31448f16b681b4244536c38d3bdf0c8893aba074 (diff)
downloadbcm5719-llvm-8da1f95916588922dd3ef277602aa93891106902.tar.gz
bcm5719-llvm-8da1f95916588922dd3ef277602aa93891106902.zip
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index aee84c07d59..52bde6797db 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -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;
OpenPOWER on IntegriCloud