[llvm] f4c59c0 - [wasm] Unbreak after 5fc5c7db38672c8962879b6fdce68393181c5e08. NFCI.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 17 06:51:17 PST 2020
Author: Benjamin Kramer
Date: 2020-02-17T15:49:49+01:00
New Revision: f4c59c0f97cd64668c50547f23249017689717af
URL: https://github.com/llvm/llvm-project/commit/f4c59c0f97cd64668c50547f23249017689717af
DIFF: https://github.com/llvm/llvm-project/commit/f4c59c0f97cd64668c50547f23249017689717af.diff
LOG: [wasm] Unbreak after 5fc5c7db38672c8962879b6fdce68393181c5e08. NFCI.
Added:
Modified:
llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
index 39aecc7c463b..89265a3a9520 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
@@ -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);
More information about the llvm-commits
mailing list