Fix internal build failure: ../../../ClangDiagnosticsEmitter.cpp -o ClangDiagnosticsEmitter.o ../../../ClangDiagnosticsEmitter.cpp: In function 'llvm::StringRef {anonymous}::getModifierName({anonymous}::ModifierType)': ../../../ClangDiagnosticsEmitter.cpp:495:1: error: control reaches end of non-void function [-Werror=return-type] } ^ Build failure triggered by git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332799 91177308-0d34-0410-b5e6-96231b3b80d8
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Please instead add an llvm_unreachable outside the switch, so that we still get warnings on missing switch cases if an enumerator is added.
Comment Actions
LGTM.
utils/TableGen/ClangDiagnosticsEmitter.cpp | ||
---|---|---|
495 | Perhaps this should say "unhandled case" or similar? |
Perhaps this should say "unhandled case" or similar?