[llvm] 34313eb - [JITLink] Ensure Edges order is deterministic

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 19 17:40:56 PDT 2024


Author: Fangrui Song
Date: 2024-06-19T17:40:51-07:00
New Revision: 34313eb1f0c2f5c6b5303b26d6babdad985e16e9

URL: https://github.com/llvm/llvm-project/commit/34313eb1f0c2f5c6b5303b26d6babdad985e16e9
DIFF: https://github.com/llvm/llvm-project/commit/34313eb1f0c2f5c6b5303b26d6babdad985e16e9.diff

LOG: [JITLink] Ensure Edges order is deterministic

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h b/llvm/lib/ExecutionEngine/JITLink/SEHFrameSupport.h
index 21bfd36d44a21..f17dfe98ba4f9 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 @@ 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())


        


More information about the llvm-commits mailing list