summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2017-03-20 14:40:18 +0000
committerDiana Picus <diana.picus@linaro.org>2017-03-20 14:40:18 +0000
commitd79253a9f7833c429fbb3920277e8f2a11f8e1a7 (patch)
treea8da86c583a9f1dfbe2d5e559a2c8fc0dfe15b80 /llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
parent00b34996b49748045e2dd77e4f7ca60c258639e2 (diff)
downloadbcm5719-llvm-d79253a9f7833c429fbb3920277e8f2a11f8e1a7.tar.gz
bcm5719-llvm-d79253a9f7833c429fbb3920277e8f2a11f8e1a7.zip
[GlobalISel] Use the correct calling conv for calls
This commit adds a parameter that lets us pass in the calling convention of the call to CallLowering::lowerCall. This allows us to handle situations where the calling convetion of the callee is different from that of the caller. Differential Revision: https://reviews.llvm.org/D31039 llvm-svn: 298254
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/CallLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/CallLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
index e45ae4a77f2..b0fdf3bbcc6 100644
--- a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
@@ -52,7 +52,7 @@ bool CallLowering::lowerCall(
if (!OrigRet.Ty->isVoidTy())
setArgFlags(OrigRet, AttributeSet::ReturnIndex, DL, CS);
- return lowerCall(MIRBuilder, Callee, OrigRet, OrigArgs);
+ return lowerCall(MIRBuilder, CS.getCallingConv(), Callee, OrigRet, OrigArgs);
}
template <typename FuncInfoTy>
OpenPOWER on IntegriCloud