Skip to content

Commit b11b0a4

Browse files
committed
IRGen: Remove hack
Since llvm-project PR#2557 llvm will no longer use r11 for swiftasync
1 parent 99e3ef0 commit b11b0a4

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)