From 75e0c4b0603c2006111f164c4113c4f26bcdaf64 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 27 Mar 2015 17:51:30 +0000 Subject: Remove superfluous .str() and replace std::string concatenation with Twine. llvm-svn: 233392 --- llvm/lib/CodeGen/ShadowStackGCLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/ShadowStackGCLowering.cpp') 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 -- cgit v1.2.3