]> granicus.if.org Git - clang/commitdiff
Merge two lines
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 18 Jul 2014 21:29:55 +0000 (21:29 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 18 Jul 2014 21:29:55 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213415 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDecl.cpp

index 91f804193049eda1f50dcb386de6b2e0f3e36cb9..0f9a3011fecb59059e5e73a6059d25bc021ca0a1 100644 (file)
@@ -907,8 +907,7 @@ CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
       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)