mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[ORC] Reset AsynchronousSymbolQuery's NotifySymbolsResolved callback on error.
AsynchronousSymbolQuery::canStillFail checks the value of the callback to prevent sending it redundant error notifications, so we need to reset it after running it. llvm-svn: 335664
This commit is contained in:
parent
8a7e694834
commit
6916237279
@ -196,13 +196,14 @@ void AsynchronousSymbolQuery::handleFailed(Error Err) {
|
||||
assert(QueryRegistrations.empty() && ResolvedSymbols.empty() &&
|
||||
NotYetResolvedCount == 0 && NotYetReadyCount == 0 &&
|
||||
"Query should already have been abandoned");
|
||||
if (NotifySymbolsResolved)
|
||||
if (NotifySymbolsResolved) {
|
||||
NotifySymbolsResolved(std::move(Err));
|
||||
else {
|
||||
NotifySymbolsResolved = SymbolsResolvedCallback();
|
||||
} else {
|
||||
assert(NotifySymbolsReady && "Failed after both callbacks issued?");
|
||||
NotifySymbolsReady(std::move(Err));
|
||||
NotifySymbolsReady = SymbolsReadyCallback();
|
||||
}
|
||||
NotifySymbolsReady = SymbolsReadyCallback();
|
||||
}
|
||||
|
||||
void AsynchronousSymbolQuery::addQueryDependence(VSO &V, SymbolStringPtr Name) {
|
||||
|
Loading…
Reference in New Issue
Block a user