Skip to content

Commit 2c85502

Browse files
Merge pull request #36218 from aschwaighofer/remove_irgen_workaround_r11_clobbere
IRGen: Remove hack
2 parents d4a5282 + b11b0a4 commit 2c85502

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,13 +2425,6 @@ void IRGenSILFunction::visitFunctionRefBaseInst(FunctionRefBaseInst *i) {
24252425
value = llvm::ConstantExpr::getBitCast(value, fnPtr->getType());
24262426
} else {
24272427
value = fnPtr;
2428-
2429-
// HACK: the swiftasync argument treatment is currently using
2430-
// a register that can be clobbered by the linker. Use nonlazybind
2431-
// as a workaround.
2432-
if (fpKind.isSpecial()) {
2433-
cast<llvm::Function>(value)->addFnAttr(llvm::Attribute::NonLazyBind);
2434-
}
24352428
}
24362429
FunctionPointer fp = FunctionPointer(fpKind, value, sig);
24372430

0 commit comments

Comments
 (0)