mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: create hop_to_executor instructions with "auto-generated" debug locations.
Those instructions should not be "visible" for debugging and for diagnostic messages. Fixes a wrong "unreachable code" warning. https://bugs.swift.org/browse/SR-14873 rdar://80237870
This commit is contained in:
@@ -818,7 +818,7 @@ static void injectHopToExecutorAfter(SILLocation loc,
|
||||
if (needsBorrow)
|
||||
actor = b.createBeginBorrow(loc, actor);
|
||||
|
||||
b.createHopToExecutor(loc, actor, /*mandatory=*/false);
|
||||
b.createHopToExecutor(loc.asAutoGenerated(), actor, /*mandatory=*/false);
|
||||
|
||||
if (needsBorrow)
|
||||
b.createEndBorrow(loc, actor);
|
||||
|
||||
Reference in New Issue
Block a user