From b7788ebb4a992d7ccd141c91d08e72c18e3158cc 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. llvm-svn: 334724 --- llvm/lib/ExecutionEngine/Orc/Core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/ExecutionEngine') diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index aeb10a584c3..82be34476f6 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/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