aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-22 00:32:22 +0000
committerChris Lattner <sabre@nondot.org>2009-03-22 00:32:22 +0000
commit3403084886b3d0fc23eee2b5708f0ac0329423e0 (patch)
tree5365adb28ee4395cb60d7e56c4f23d2bd0a4ffb1 /lib/CodeGen/CGDecl.cpp
parentf1466848dce9c4c75d96a6cabdc8db560e26aac8 (diff)
don't set the name of a call instruction to "call" in release-asserts
build. This shaves another 3% off. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r--lib/CodeGen/CGDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp
index 49ac20a9bc..acf16561cc 100644
--- a/lib/CodeGen/CGDecl.cpp
+++ b/lib/CodeGen/CGDecl.cpp
@@ -237,7 +237,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
if (isByRef)
Alloc->setAlignment(std::max(getContext().getDeclAlignInBytes(&D),
- getContext().getTypeAlign(getContext().VoidPtrTy) / 8));
+ unsigned(Target.getPointerAlign(0) / 8)));
else
Alloc->setAlignment(getContext().getDeclAlignInBytes(&D));
DeclPtr = Alloc;