Skip to content

Commit 101ab74

Browse files
Merge pull request #13427 from apple/revert-13416-fix_anyobject_closure_linux
Revert "IRGen: The partial application forwarder needs to cast { swift.refcounted* } to swift.refcounted* for AnyObject types on linux"
2 parents e618ae5 + d14cd40 commit 101ab74

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

lib/IRGen/GenFunc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ static llvm::Function *emitPartialApplicationForwarder(IRGenModule &IGM,
967967
auto paramInfo = substType->getParameters()[paramI];
968968
auto &ti = IGM.getTypeInfoForLowered(paramInfo.getType());
969969
Explosion param;
970-
param.add(subIGF.coerceValue(rawData, ti.getStorageType(), subIGF.IGM.DataLayout));
970+
param.add(subIGF.Builder.CreateBitCast(rawData, ti.getStorageType()));
971971
bindPolymorphicParameter(subIGF, origType, substType, param, paramI);
972972
(void)param.claimAll();
973973
}

test/IRGen/objc_partial_apply_forwarder.swift

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)