r213431 - Revert r213415, "Merge two lines". It broke tests in -Asserts builds.
NAKAMURA Takumi
geek4civic at gmail.com
Fri Jul 18 16:46:16 PDT 2014
Author: chapuni
Date: Fri Jul 18 18:46:16 2014
New Revision: 213431
URL: http://llvm.org/viewvc/llvm-project?rev=213431&view=rev
Log:
Revert r213415, "Merge two lines". It broke tests in -Asserts builds.
CGBuilder doesn't name instructions with Name. We should use Inst::setName() to name an instruction explicitly here.
Modified:
cfe/trunk/lib/CodeGen/CGDecl.cpp
Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=213431&r1=213430&r2=213431&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Fri Jul 18 18:46:16 2014
@@ -907,7 +907,8 @@ CodeGenFunction::EmitAutoVarAlloca(const
if (isByRef)
LTy = BuildByRefType(&D);
- llvm::AllocaInst *Alloc = CreateTempAlloca(LTy, D.getName());
+ llvm::AllocaInst *Alloc = CreateTempAlloca(LTy);
+ Alloc->setName(D.getName());
CharUnits allocaAlignment = alignment;
if (isByRef)
More information about the cfe-commits
mailing list