aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-19 17:40:51 -0700
committerFangrui Song <i@maskray.me>2024-06-19 17:40:51 -0700
commit34313eb1f0c2f5c6b5303b26d6babdad985e16e9 (patch)
treef6b8a62ea3d08e496a4671ad3d80037f52254106
parentc025bd1fdbbdbe76c450eb08ebd8649fb3179d5a (diff)
downloadllvm-34313eb1f0c2f5c6b5303b26d6babdad985e16e9.zip
llvm-34313eb1f0c2f5c6b5303b26d6babdad985e16e9.tar.gz
llvm-34313eb1f0c2f5c6b5303b26d6babdad985e16e9.tar.bz2
[JITLink] Ensure Edges order is deterministic
-rw-r--r--llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h b/llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h
index 21bfd36..f17dfe9 100644
--- a/llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h
+++ b/llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h
@@ -13,6 +13,7 @@
#ifndef LLVM_EXECUTIONENGINE_JITLINK_SEHFRAMESUPPORT_H
#define LLVM_EXECUTIONENGINE_JITLINK_SEHFRAMESUPPORT_H
+#include "llvm/ADT/SetVector.h"
#include "llvm/ExecutionEngine/JITLink/JITLink.h"
#include "llvm/ExecutionEngine/JITSymbol.h"
#include "llvm/Support/Error.h"
@@ -38,7 +39,7 @@ public:
// count for the fate of seh frame block.
for (auto *B : S->blocks()) {
auto &DummySymbol = G.addAnonymousSymbol(*B, 0, 0, false, false);
- DenseSet<Block *> Children;
+ SetVector<Block *> Children;
for (auto &E : B->edges()) {
auto &Sym = E.getTarget();
if (!Sym.isDefined())