summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-05-15 23:01:46 +0000
committerReid Kleckner <reid@kleckner.net>2014-05-15 23:01:46 +0000
commit80ace8a9362c1a62e9bb5ef67d1e6178855ea73b (patch)
tree2b2a35b6902afdfd9afb286cef8f238d21511ee6 /lib/CodeGen/CGCall.cpp
parent82893e7e14eb44c73353134eda51f91be0209b08 (diff)
downloadclang-80ace8a9362c1a62e9bb5ef67d1e6178855ea73b.tar.gz
clang-80ace8a9362c1a62e9bb5ef67d1e6178855ea73b.tar.bz2
clang-80ace8a9362c1a62e9bb5ef67d1e6178855ea73b.tar.xz
MS ABI: Use musttail for thunk IR generation
This allows us to perfectly forward non-trivial arguments that use inalloca. We still can't forward non-trivial arguments through thunks when we have a covariant return type with a non-trivial adjustment. This would require emitting an extra copy, which is non-conforming anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index cf764d635b..61bf985278 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -2616,7 +2616,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
IP = IP->getNextNode();
AI = new llvm::AllocaInst(ArgStruct, "argmem", IP);
} else {
- AI = Builder.CreateAlloca(ArgStruct, nullptr, "argmem");
+ AI = CreateTempAlloca(ArgStruct, "argmem");
}
AI->setUsedWithInAlloca(true);
assert(AI->isUsedWithInAlloca() && !AI->isStaticAlloca());