diff options
author | Eli Friedman <efriedma@quicinc.com> | 2022-08-19 14:19:24 -0700 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2022-08-19 14:21:05 -0700 |
commit | 8f826fe7233b97c58365252f78cb0f08288e9e06 (patch) | |
tree | f622b28bf3688bc6afa4a200c2c6029b6da3f5b1 /llvm/lib/CodeGen/GlobalMerge.cpp | |
parent | 175560fc21bc79c90c2cde8c0f0d8d8930220f61 (diff) | |
download | llvm-8f826fe7233b97c58365252f78cb0f08288e9e06.zip llvm-8f826fe7233b97c58365252f78cb0f08288e9e06.tar.gz llvm-8f826fe7233b97c58365252f78cb0f08288e9e06.tar.bz2 |
Fix reverse-iteration buildbot.
A couple of instances of iterating over maps snuck in while the bot was
down; fix them to use maps with deterministic iteration.
Diffstat (limited to 'llvm/lib/CodeGen/GlobalMerge.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalMerge.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalMerge.cpp b/llvm/lib/CodeGen/GlobalMerge.cpp index f5833d3..d65506d 100644 --- a/llvm/lib/CodeGen/GlobalMerge.cpp +++ b/llvm/lib/CodeGen/GlobalMerge.cpp @@ -62,6 +62,7 @@ #include "llvm/ADT/BitVector.h" #include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/Statistic.h" @@ -181,7 +182,7 @@ namespace { void collectUsedGlobalVariables(Module &M, StringRef Name); /// Keep track of the GlobalVariable that must not be merged away - SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables; + SmallSetVector<const GlobalVariable *, 16> MustKeepGlobalVariables; public: static char ID; // Pass identification, replacement for typeid. |