We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07e8ce commit 0115426Copy full SHA for 0115426
lib/ASTGen/Sources/ASTGen/PluginHost.swift
@@ -138,15 +138,15 @@ struct CompilerPlugin {
138
}
139
140
func sendMessageAndWaitWithoutLock(_ message: HostToPluginMessage) throws -> PluginToHostMessage {
141
+ guard !Plugin_spawnIfNeeded(opaqueHandle) else {
142
+ throw PluginError.stalePlugin
143
+ }
144
try sendMessage(message)
145
return try waitForNextMessage()
146
147
148
func sendMessageAndWait(_ message: HostToPluginMessage) throws -> PluginToHostMessage {
149
try self.withLock {
- guard !Plugin_spawnIfNeeded(opaqueHandle) else {
- throw PluginError.stalePlugin
- }
150
return try sendMessageAndWaitWithoutLock(message);
151
152
0 commit comments