mirror of https://github.com/microsoft/clang.git
Use a Twine to concatenate the name instead of going through std::string.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e89ba59005
commit
a4d6ca174b
|
@ -654,10 +654,8 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) {
|
|||
const llvm::Type *LTy = ConvertTypeForMem(Ty);
|
||||
if (LTy->isSingleValueType()) {
|
||||
// TODO: Alignment
|
||||
std::string Name = D.getNameAsString();
|
||||
Name += ".addr";
|
||||
DeclPtr = CreateTempAlloca(LTy);
|
||||
DeclPtr->setName(Name.c_str());
|
||||
DeclPtr->setName(D.getNameAsString() + llvm::StringRef(".addr"));
|
||||
|
||||
// Store the initial value into the alloca.
|
||||
EmitStoreOfScalar(Arg, DeclPtr, CTy.isVolatileQualified(), Ty);
|
||||
|
|
Loading…
Reference in New Issue