The cheap version of getName() is sufficient here.

llvm-svn: 145399
This commit is contained in:
Benjamin Kramer 2011-11-29 14:46:55 +00:00
parent 7f107eeea5
commit 3df1a2dd59
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
LTy = BuildByRefType(&D);
llvm::AllocaInst *Alloc = CreateTempAlloca(LTy);
Alloc->setName(D.getNameAsString());
Alloc->setName(D.getName());
CharUnits allocaAlignment = alignment;
if (isByRef)