summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-03-14 00:36:23 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-03-14 00:36:23 +0000
commit41e5ac4fa4a90f0d233f16d11763af68b735b8d7 (patch)
tree0913b5ae2f8e22b8f104addbcdc1a8aa4520c6ed /llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
parente2d3ce2339682dd20f30ba14dd2cadbbedc827a4 (diff)
downloadbcm5719-llvm-41e5ac4fa4a90f0d233f16d11763af68b735b8d7.tar.gz
bcm5719-llvm-41e5ac4fa4a90f0d233f16d11763af68b735b8d7.zip
TargetMachine: Add address space to getPointerSize
llvm-svn: 327467
Diffstat (limited to 'llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
index b2151eb4965..79fafa5497f 100644
--- a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
+++ b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
@@ -100,7 +100,7 @@ unsigned TargetFrameLowering::getStackAlignmentSkew(
// When HHVM function is called, the stack is skewed as the return address
// is removed from the stack before we enter the function.
if (LLVM_UNLIKELY(MF.getFunction().getCallingConv() == CallingConv::HHVM))
- return MF.getTarget().getPointerSize();
+ return MF.getTarget().getAllocaPointerSize();
return 0;
}
OpenPOWER on IntegriCloud