spu: external function calls should be marked non-tail

Mark external function calls as non-tail, since they aren't tail calls
and assuming they are will cause returns to fail in Arm64 GHC CC.
This commit is contained in:
sguo35 2022-07-09 23:30:18 -07:00 committed by Ivan
parent 086e12c6ca
commit 488982f424
1 changed files with 1 additions and 0 deletions

View File

@ -2979,6 +2979,7 @@ public:
m_engine->updateGlobalMapping({lame.data(), lame.size()}, reinterpret_cast<uptr>(_func));
const auto inst = m_ir->CreateCall(func, {args...});
inst->setTailCallKind(llvm::CallInst::TCK_NoTail);
#ifdef _WIN32
inst->setCallingConv(llvm::CallingConv::Win64);
#endif