diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-18 21:29:55 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-18 21:29:55 +0000 |
commit | ad2e0352f07903de00c2a21b524f40ff3297b861 (patch) | |
tree | ef4eb7e8d38f78192bacc6411a173fa0611a5499 /clang | |
parent | f3764da8ecb21c2e36fbd328076a636dd6127a6b (diff) | |
download | llvm-ad2e0352f07903de00c2a21b524f40ff3297b861.zip llvm-ad2e0352f07903de00c2a21b524f40ff3297b861.tar.gz llvm-ad2e0352f07903de00c2a21b524f40ff3297b861.tar.bz2 |
Merge two lines
llvm-svn: 213415
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 91f8041..0f9a301 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -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) |