Commit c419260
committed
[Serialization] Avoid iterating Dense{Map,Set} to break determinism
in ASTWriter
It is bad to iterate Dense{Map,Set} in ASTWriter. Since the order in
Dense{Map, Set} is not stable. It may cause the produced BMI differ
even if we run the compiler twice without modifying any other thing.1 parent 3b2b918 commit c419260
File tree
2 files changed
+2
-2
lines changed- clang
- include/clang/Serialization
- lib/Serialization
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4438 | 4438 | | |
4439 | 4439 | | |
4440 | 4440 | | |
4441 | | - | |
| 4441 | + | |
4442 | 4442 | | |
4443 | 4443 | | |
4444 | 4444 | | |
| |||
0 commit comments