Skip to content

Commit fc791d1

Browse files
authored
Use SmallPtrSet after deprecation (#3329)
Update for llvm-project commit `9b493dcad259` ("[ADT] Deprecate the redirection from SmallSet to SmallPtrSet (Take 2) (#155078)", 2025-08-23).
1 parent 8e03680 commit fc791d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SPIRV/SPIRVReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#include "VectorComputeUtil.h"
5757

5858
#include "llvm/ADT/DenseMap.h"
59-
#include "llvm/ADT/SmallSet.h"
59+
#include "llvm/ADT/SmallPtrSet.h"
6060
#include "llvm/ADT/StringExtras.h"
6161
#include "llvm/Analysis/LoopInfo.h"
6262
#include "llvm/BinaryFormat/Dwarf.h"
@@ -829,7 +829,7 @@ void SPIRVToLLVM::setLLVMLoopMetadata(const LoopInstType *LM,
829829
// Create index group metadata nodes - one per each of the array
830830
// variables. Mark each GEP accessing a particular array variable
831831
// into a corresponding index group
832-
std::map<unsigned, SmallSet<MDNode *, 4>> SafelenIdxGroupMap;
832+
std::map<unsigned, SmallPtrSet<MDNode *, 4>> SafelenIdxGroupMap;
833833
// Whenever a kernel closure field access is pointed to instead of
834834
// an array/pointer variable, ensure that all GEPs to that memory
835835
// share the same index group by hashing the newly added index groups.

0 commit comments

Comments
 (0)