Skip to content

Commit 829781c

Browse files
jsjisys-ce-bb
authored andcommitted
[SYCL] Use MapVector instead of DenseMap to get deterministtic order of attr
llvm/llvm-project#96282 changed the hashing, we may get non-detrministic iteration order if using DenseMap. This is causing tests to beome flaky. Fixing it similar to 6644975
1 parent 2115a2d commit 829781c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CodeGenModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ class CodeGenModule : public CodeGenTypeCache {
627627
MetadataTypeMap VirtualMetadataIdMap;
628628
MetadataTypeMap GeneralizedMetadataIdMap;
629629

630-
llvm::DenseMap<StringRef, const RecordDecl *> TypesWithAspects;
630+
llvm::MapVector<StringRef, const RecordDecl *> TypesWithAspects;
631631
const EnumDecl *AspectsEnumDecl = nullptr;
632632
// Helps squashing blocks of TopLevelStmtDecl into a single llvm::Function
633633
// when used with -fincremental-extensions.

0 commit comments

Comments
 (0)