From c6679d1e091164751b6922d7ca0ce2c6ebb9473c Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 14 Jun 2018 15:32:59 +0000 Subject: [ORC] Filter out self-dependencies in VSO::addDependencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334724 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Orc/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ExecutionEngine') diff --git a/lib/ExecutionEngine/Orc/Core.cpp b/lib/ExecutionEngine/Orc/Core.cpp index aeb10a584c3..82be34476f6 100644 --- a/lib/ExecutionEngine/Orc/Core.cpp +++ b/lib/ExecutionEngine/Orc/Core.cpp @@ -452,7 +452,7 @@ void VSO::addDependencies(const SymbolFlagsMap &Dependants, if (OtherMI.IsFinalized) transferFinalizedNodeDependencies(MI, Name, OtherMI); - else { + else if (&OtherVSO != this || OtherSymbol != Name) { OtherMI.Dependants[this].insert(Name); DepsOnOtherVSO.insert(OtherSymbol); } -- cgit v1.2.3