forked from OSchip/llvm-project
parent
f3764da8ec
commit
ad2e0352f0
|
@ -907,8 +907,7 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
|
||||||
if (isByRef)
|
if (isByRef)
|
||||||
LTy = BuildByRefType(&D);
|
LTy = BuildByRefType(&D);
|
||||||
|
|
||||||
llvm::AllocaInst *Alloc = CreateTempAlloca(LTy);
|
llvm::AllocaInst *Alloc = CreateTempAlloca(LTy, D.getName());
|
||||||
Alloc->setName(D.getName());
|
|
||||||
|
|
||||||
CharUnits allocaAlignment = alignment;
|
CharUnits allocaAlignment = alignment;
|
||||||
if (isByRef)
|
if (isByRef)
|
||||||
|
|
Loading…
Reference in New Issue