aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
index 57ade94..a66c40d 100644
--- a/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
@@ -626,9 +626,11 @@ private:
}
}
}
+ }
- // If this node has both dependants and dependencies then add it to the
- // worklist to propagate the dependencies to the dependants.
+ // Add blocks with both dependants and dependencies to the worklist to
+ // propagate dependencies to dependants.
+ for (auto &[B, BI] : BlockInfos) {
if (!BI.Dependants.empty() && !BI.Dependencies.empty())
WorkList.push_back(B);
}