Skip to content

Commit

Permalink
[JITLink] Ensure Edges order is deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Jun 20, 2024
1 parent c025bd1 commit 34313eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -38,7 +39,7 @@ class SEHFrameKeepAlivePass {
// 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())
Expand Down

0 comments on commit 34313eb

Please sign in to comment.