We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9676e commit bc3bf84Copy full SHA for bc3bf84
include/swift/SIL/SILLocation.h
@@ -520,8 +520,13 @@ class SILLocation {
520
};
521
522
inline llvm::hash_code hash_value(const SILLocation &R) {
523
- return llvm::hash_combine(R.kindAndFlags.packedKindAndFlags,
524
- *R.storage.filePositionLoc);
+ if (R.isFilenameAndLocation()) {
+ return llvm::hash_combine(R.kindAndFlags.packedKindAndFlags,
525
+ *R.storage.filePositionLoc);
526
+ } else {
527
528
+ R.storage.filePositionLoc);
529
+ }
530
}
531
532
inline llvm::hash_code hash_value(const SILLocation::FilenameAndLocation &R) {
0 commit comments