@@ -975,15 +975,15 @@ static void emitWasmCatchPadBlock(CodeGenFunction &CGF,
975975 // Create calls to wasm.get.exception and wasm.get.ehselector intrinsics.
976976 // Before they are lowered appropriately later, they provide values for the
977977 // exception and selector.
978- llvm::Value *GetExnFn =
978+ llvm::Function *GetExnFn =
979979 CGF.CGM .getIntrinsic (llvm::Intrinsic::wasm_get_exception);
980- llvm::Value *GetSelectorFn =
980+ llvm::Function *GetSelectorFn =
981981 CGF.CGM .getIntrinsic (llvm::Intrinsic::wasm_get_ehselector);
982982 llvm::CallInst *Exn = CGF.Builder .CreateCall (GetExnFn, CPI);
983983 CGF.Builder .CreateStore (Exn, CGF.getExceptionSlot ());
984984 llvm::CallInst *Selector = CGF.Builder .CreateCall (GetSelectorFn, CPI);
985985
986- llvm::Value *TypeIDFn = CGF.CGM .getIntrinsic (llvm::Intrinsic::eh_typeid_for);
986+ llvm::Function *TypeIDFn = CGF.CGM .getIntrinsic (llvm::Intrinsic::eh_typeid_for);
987987
988988 // If there's only a single catch-all, branch directly to its handler.
989989 if (CatchScope.getNumHandlers () == 1 &&
@@ -1067,7 +1067,7 @@ static void emitCatchDispatchBlock(CodeGenFunction &CGF,
10671067 CGF.EmitBlockAfterUses (dispatchBlock);
10681068
10691069 // Select the right handler.
1070- llvm::Value *llvm_eh_typeid_for =
1070+ llvm::Function *llvm_eh_typeid_for =
10711071 CGF.CGM .getIntrinsic (llvm::Intrinsic::eh_typeid_for);
10721072
10731073 // Load the selector value.
@@ -1543,7 +1543,7 @@ llvm::BasicBlock *CodeGenFunction::getTerminateFunclet() {
15431543 // __clang_call_terminate function.
15441544 if (getLangOpts ().CPlusPlus &&
15451545 EHPersonality::get (*this ).isWasmPersonality ()) {
1546- llvm::Value *GetExnFn =
1546+ llvm::Function *GetExnFn =
15471547 CGM.getIntrinsic (llvm::Intrinsic::wasm_get_exception);
15481548 Exn = Builder.CreateCall (GetExnFn, CurrentFuncletPad);
15491549 }
@@ -1630,7 +1630,7 @@ struct PerformSEHFinally final : EHScopeStack::Cleanup {
16301630 if (CGF.IsOutlinedSEHHelper ) {
16311631 FP = &CGF.CurFn ->arg_begin ()[1 ];
16321632 } else {
1633- llvm::Value *LocalAddrFn =
1633+ llvm::Function *LocalAddrFn =
16341634 CGM.getIntrinsic (llvm::Intrinsic::localaddress);
16351635 FP = CGF.Builder .CreateCall (LocalAddrFn);
16361636 }
0 commit comments