X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FR600%2FAMDGPUPromoteAlloca.cpp;h=6d5f94e165c9e2546f41a2b2686e7e85ebe13786;hb=2a9bbcbbadd5ba2eac950e1717c456298ec12bb6;hp=175dcd89e529ad746c4070bd4e797a0d6b65dc20;hpb=1fa94d6f926763f9fc0fd0f73e63e85fea31cdc7;p=oota-llvm.git diff --git a/lib/Target/R600/AMDGPUPromoteAlloca.cpp b/lib/Target/R600/AMDGPUPromoteAlloca.cpp index 175dcd89e52..6d5f94e165c 100644 --- a/lib/Target/R600/AMDGPUPromoteAlloca.cpp +++ b/lib/Target/R600/AMDGPUPromoteAlloca.cpp @@ -366,8 +366,8 @@ void AMDGPUPromoteAlloca::visitAlloca(AllocaInst &I) { Function *F = Call->getCalledFunction(); FunctionType *NewType = FunctionType::get(Call->getType(), ArgTypes, F->isVarArg()); - Constant *C = Mod->getOrInsertFunction(StringRef(F->getName().str() + ".local"), NewType, - F->getAttributes()); + Constant *C = Mod->getOrInsertFunction((F->getName() + ".local").str(), + NewType, F->getAttributes()); Function *NewF = cast(C); Call->setCalledFunction(NewF); continue;