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:
4e7d1e7
)
Revert r213415, "Merge two lines". It broke tests in -Asserts builds.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 18 Jul 2014 23:46:16 +0000
(23:46 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 18 Jul 2014 23:46:16 +0000
(23:46 +0000)
CGBuilder doesn't name instructions with Name. We should use Inst::setName() to name an instruction explicitly here.
llvm-svn: 213431
clang/lib/CodeGen/CGDecl.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CGDecl.cpp
b/clang/lib/CodeGen/CGDecl.cpp
index 0f9a3011fecb59059e5e73a6059d25bc021ca0a1..91f804193049eda1f50dcb386de6b2e0f3e36cb9 100644
(file)
--- a/
clang/lib/CodeGen/CGDecl.cpp
+++ b/
clang/lib/CodeGen/CGDecl.cpp
@@
-907,7
+907,8
@@
CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) {
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)