summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-06-17 16:59:53 +0000
committerLang Hames <lhames@gmail.com>2018-06-17 16:59:53 +0000
commitdf5776b1dc464a3afb920d72103a75c567d59cf6 (patch)
tree11d8558e21eb33bc61988e642d84ad5e4795e85e /llvm/lib/ExecutionEngine
parent11adecfb2ca7f97551aaa0df32507bf7c432ba18 (diff)
downloadbcm5719-llvm-df5776b1dc464a3afb920d72103a75c567d59cf6.tar.gz
bcm5719-llvm-df5776b1dc464a3afb920d72103a75c567d59cf6.zip
[ORC] Erase empty dependence sets when adding new symbol dependencies.
llvm-svn: 334910
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/Core.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index 96baf624caa..c5730378fa6 100644
--- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -467,6 +467,9 @@ void VSO::addDependencies(const SymbolFlagsMap &Dependants,
DepsOnOtherVSO.insert(OtherSymbol);
}
}
+
+ if (DepsOnOtherVSO.empty())
+ MI.UnfinalizedDependencies.erase(&OtherVSO);
}
}
});
OpenPOWER on IntegriCloud