r213415 - Merge two lines
Alexey Samsonov
vonosmas at gmail.com
Fri Jul 18 14:29:55 PDT 2014
Author: samsonov
Date: Fri Jul 18 16:29:55 2014
New Revision: 213415
URL: http://llvm.org/viewvc/llvm-project?rev=213415&view=rev
Log:
Merge two lines
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=213415&r1=213414&r2=213415&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Fri Jul 18 16:29:55 2014
@@ -907,8 +907,7 @@ CodeGenFunction::EmitAutoVarAlloca(const
if (isByRef)
LTy = BuildByRefType(&D);
- llvm::AllocaInst *Alloc = CreateTempAlloca(LTy);
- Alloc->setName(D.getName());
+ llvm::AllocaInst *Alloc = CreateTempAlloca(LTy, D.getName());
CharUnits allocaAlignment = alignment;
if (isByRef)
More information about the cfe-commits
mailing list