Skip to content

Commit cbf1535

Browse files
committed
[ORC] Fix fall-through in error case in EPCGenericDylibManager::lookupAsync.
In the event of a serialization error (e.g. due to a network dropout) we should only run the Complete handler once, passing the serialization error value. No test-case: This would require a deliberately injected failure in a remote-JIT test and we don't have the infrastructure for that at the moment. rdar://126772381
1 parent c73516a commit cbf1535

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/ExecutionEngine/Orc/EPCGenericDylibManager.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ void EPCGenericDylibManager::lookupAsync(tpctypes::DylibHandle H,
109109
if (SerializationErr) {
110110
cantFail(Result.takeError());
111111
Complete(std::move(SerializationErr));
112+
return;
112113
}
113114
Complete(std::move(Result));
114115
},

0 commit comments

Comments
 (0)