mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
The cheap version of getName() is sufficient here.
llvm-svn: 145399
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user