Skip to content

Commit 87d2cdc

Browse files
committed
Sema: silence some uncovered warnings on MSVC (NFC)
This adds an unreachable to indicate to MSVC that the switch is covered.
1 parent 9855496 commit 87d2cdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/ConstraintSystem.h

+2
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ class SolutionApplicationTargetsKey {
917917
(lhs.storage.patternBindingEntry.index
918918
== rhs.storage.patternBindingEntry.index);
919919
}
920+
llvm_unreachable("invalid SolutionApplicationTargetsKey kind");
920921
}
921922

922923
friend bool operator!=(
@@ -951,6 +952,7 @@ class SolutionApplicationTargetsKey {
951952
DenseMapInfo<unsigned>::getHashValue(
952953
storage.patternBindingEntry.index));
953954
}
955+
llvm_unreachable("invalid statement kind");
954956
}
955957
};
956958

0 commit comments

Comments
 (0)