projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3764da
)
Merge two lines
author
Alexey Samsonov
<vonosmas@gmail.com>
Fri, 18 Jul 2014 21:29:55 +0000
(21:29 +0000)
committer
Alexey Samsonov
<vonosmas@gmail.com>
Fri, 18 Jul 2014 21:29:55 +0000
(21:29 +0000)
llvm-svn: 213415
clang/lib/CodeGen/CGDecl.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDecl.cpp
b/clang/lib/CodeGen/CGDecl.cpp
index
91f8041
..
0f9a301
100644
(file)
--- 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)