Skip to content

Commit 7422e8a

Browse files
committed
Add comment
1 parent d9d4cc8 commit 7422e8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/ADT/StringSwitch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ class StringSwitch {
181181
return Value;
182182
}
183183

184+
/// Declare default as unreachable, making sure that all cases were handled.
184185
[[nodiscard]] R DefaultUnreachable(
185186
const char *Message = "Fell off the end of a string-switch") {
186187
if (Result)

0 commit comments

Comments
 (0)