@@ -2605,7 +2605,7 @@ void IRGenSILFunction::visitDifferentiabilityWitnessFunctionInst(
2605
2605
Builder.CreateBitCast (diffWitness, signature.getType ()->getPointerTo ());
2606
2606
2607
2607
setLoweredFunctionPointer (
2608
- i, FunctionPointer::createUnsigned (fnType, diffWitness, signature));
2608
+ i, FunctionPointer::createUnsigned (fnType, diffWitness, signature, true ));
2609
2609
}
2610
2610
2611
2611
FunctionPointer::Kind irgen::classifyFunctionPointerKind (SILFunction *fn) {
@@ -6860,7 +6860,7 @@ void IRGenSILFunction::visitWitnessMethodInst(swift::WitnessMethodInst *i) {
6860
6860
}
6861
6861
6862
6862
auto sig = IGM.getSignature (fnType);
6863
- auto fn = FunctionPointer::forDirect (fnType, fnPtr, secondaryValue, sig);
6863
+ auto fn = FunctionPointer::forDirect (fnType, fnPtr, secondaryValue, sig, true );
6864
6864
6865
6865
setLoweredFunctionPointer (i, fn);
6866
6866
return ;
@@ -7093,7 +7093,7 @@ void IRGenSILFunction::visitSuperMethodInst(swift::SuperMethodInst *i) {
7093
7093
auto authInfo =
7094
7094
PointerAuthInfo::emit (*this , schema, /* storageAddress=*/ nullptr , method);
7095
7095
7096
- auto fn = FunctionPointer::createSigned (methodType, fnPtr, authInfo, sig);
7096
+ auto fn = FunctionPointer::createSigned (methodType, fnPtr, authInfo, sig, true );
7097
7097
7098
7098
setLoweredFunctionPointer (i, fn);
7099
7099
return ;
@@ -7156,7 +7156,7 @@ void IRGenSILFunction::visitClassMethodInst(swift::ClassMethodInst *i) {
7156
7156
}
7157
7157
7158
7158
auto sig = IGM.getSignature (methodType);
7159
- auto fn = FunctionPointer::createUnsigned (methodType, fnPtr, sig);
7159
+ auto fn = FunctionPointer::createUnsigned (methodType, fnPtr, sig, true );
7160
7160
7161
7161
setLoweredFunctionPointer (i, fn);
7162
7162
return ;
0 commit comments