summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ShadowStackGCLowering.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-03-27 17:51:30 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-03-27 17:51:30 +0000
commit75e0c4b0603c2006111f164c4113c4f26bcdaf64 (patch)
treefea0a83b9bc4d00a2df61934123a5e374f4516c3 /llvm/lib/CodeGen/ShadowStackGCLowering.cpp
parent6dcddc21f83def171f2c0f558ae85a1994809a67 (diff)
downloadbcm5719-llvm-75e0c4b0603c2006111f164c4113c4f26bcdaf64.tar.gz
bcm5719-llvm-75e0c4b0603c2006111f164c4113c4f26bcdaf64.zip
Remove superfluous .str() and replace std::string concatenation with Twine.
llvm-svn: 233392
Diffstat (limited to 'llvm/lib/CodeGen/ShadowStackGCLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/ShadowStackGCLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ShadowStackGCLowering.cpp b/llvm/lib/CodeGen/ShadowStackGCLowering.cpp
index 66a6a3c1f4d..815a0a76c16 100644
--- a/llvm/lib/CodeGen/ShadowStackGCLowering.cpp
+++ b/llvm/lib/CodeGen/ShadowStackGCLowering.cpp
@@ -249,7 +249,7 @@ Type *ShadowStackGCLowering::GetConcreteStackEntryType(Function &F) {
for (size_t I = 0; I != Roots.size(); I++)
EltTys.push_back(Roots[I].second->getAllocatedType());
- return StructType::create(EltTys, "gc_stackentry." + F.getName().str());
+ return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str());
}
/// doInitialization - If this module uses the GC intrinsics, find them now. If
OpenPOWER on IntegriCloud