1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[wasm] Unbreak after 5fc5c7db38672c8962879b6fdce68393181c5e08. NFCI.

This commit is contained in:
Benjamin Kramer 2020-02-17 15:49:49 +01:00
parent 54b3fec3ad
commit 5038318cdb

View File

@ -688,17 +688,18 @@ bool WebAssemblyLowerEmscriptenEHSjLj::runOnModule(Module &M) {
if (SetjmpF) {
// Register saveSetjmp function
FunctionType *SetjmpFTy = SetjmpF->getFunctionType();
std::array<Type *, 4> Params = {SetjmpFTy->getParamType(0),
IRB.getInt32Ty(), Type::getInt32PtrTy(C),
IRB.getInt32Ty()};
FunctionType *FTy =
FunctionType::get(Type::getInt32PtrTy(C), Params, false);
FunctionType::get(Type::getInt32PtrTy(C),
{SetjmpFTy->getParamType(0), IRB.getInt32Ty(),
Type::getInt32PtrTy(C), IRB.getInt32Ty()},
false);
SaveSetjmpF =
Function::Create(FTy, GlobalValue::ExternalLinkage, "saveSetjmp", &M);
// Register testSetjmp function
Params = {IRB.getInt32Ty(), Type::getInt32PtrTy(C), IRB.getInt32Ty()};
FTy = FunctionType::get(IRB.getInt32Ty(), Params, false);
FTy = FunctionType::get(
IRB.getInt32Ty(),
{IRB.getInt32Ty(), Type::getInt32PtrTy(C), IRB.getInt32Ty()}, false);
TestSetjmpF =
Function::Create(FTy, GlobalValue::ExternalLinkage, "testSetjmp", &M);