@@ -975,15 +975,15 @@ static void emitWasmCatchPadBlock(CodeGenFunction &CGF,
975
975
// Create calls to wasm.get.exception and wasm.get.ehselector intrinsics.
976
976
// Before they are lowered appropriately later, they provide values for the
977
977
// exception and selector.
978
- llvm::Value *GetExnFn =
978
+ llvm::Function *GetExnFn =
979
979
CGF.CGM .getIntrinsic (llvm::Intrinsic::wasm_get_exception);
980
- llvm::Value *GetSelectorFn =
980
+ llvm::Function *GetSelectorFn =
981
981
CGF.CGM .getIntrinsic (llvm::Intrinsic::wasm_get_ehselector);
982
982
llvm::CallInst *Exn = CGF.Builder .CreateCall (GetExnFn, CPI);
983
983
CGF.Builder .CreateStore (Exn, CGF.getExceptionSlot ());
984
984
llvm::CallInst *Selector = CGF.Builder .CreateCall (GetSelectorFn, CPI);
985
985
986
- llvm::Value *TypeIDFn = CGF.CGM .getIntrinsic (llvm::Intrinsic::eh_typeid_for);
986
+ llvm::Function *TypeIDFn = CGF.CGM .getIntrinsic (llvm::Intrinsic::eh_typeid_for);
987
987
988
988
// If there's only a single catch-all, branch directly to its handler.
989
989
if (CatchScope.getNumHandlers () == 1 &&
@@ -1067,7 +1067,7 @@ static void emitCatchDispatchBlock(CodeGenFunction &CGF,
1067
1067
CGF.EmitBlockAfterUses (dispatchBlock);
1068
1068
1069
1069
// Select the right handler.
1070
- llvm::Value *llvm_eh_typeid_for =
1070
+ llvm::Function *llvm_eh_typeid_for =
1071
1071
CGF.CGM .getIntrinsic (llvm::Intrinsic::eh_typeid_for);
1072
1072
1073
1073
// Load the selector value.
@@ -1543,7 +1543,7 @@ llvm::BasicBlock *CodeGenFunction::getTerminateFunclet() {
1543
1543
// __clang_call_terminate function.
1544
1544
if (getLangOpts ().CPlusPlus &&
1545
1545
EHPersonality::get (*this ).isWasmPersonality ()) {
1546
- llvm::Value *GetExnFn =
1546
+ llvm::Function *GetExnFn =
1547
1547
CGM.getIntrinsic (llvm::Intrinsic::wasm_get_exception);
1548
1548
Exn = Builder.CreateCall (GetExnFn, CurrentFuncletPad);
1549
1549
}
@@ -1630,7 +1630,7 @@ struct PerformSEHFinally final : EHScopeStack::Cleanup {
1630
1630
if (CGF.IsOutlinedSEHHelper ) {
1631
1631
FP = &CGF.CurFn ->arg_begin ()[1 ];
1632
1632
} else {
1633
- llvm::Value *LocalAddrFn =
1633
+ llvm::Function *LocalAddrFn =
1634
1634
CGM.getIntrinsic (llvm::Intrinsic::localaddress);
1635
1635
FP = CGF.Builder .CreateCall (LocalAddrFn);
1636
1636
}
0 commit comments