forked from OSchip/llvm-project
[ClangDiagnostics] Silence warning about fallthrough after PrintFatalError
Summary: ClangDiagnosticsEmitter.cpp:1047:57: warning: this statement may fall through [-Wimplicit-fallthrough=] Builder.PrintFatalError("Unknown modifier type: " + Modifier); ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ClangDiagnosticsEmitter.cpp:1048:5: note: here case MT_Select: { ^ Reviewers: rsmith, rtrieu Reviewed By: rtrieu Subscribers: rtrieu, ilya-biryukov, ioeric, MaskRay, jkorous, cfe-commits Differential Revision: https://reviews.llvm.org/D47340 llvm-svn: 333340
This commit is contained in:
parent
cf51c80bf1
commit
05a9bc176e
|
@ -633,7 +633,7 @@ struct DiagnosticTextBuilder {
|
|||
return It->second.Root;
|
||||
}
|
||||
|
||||
void PrintFatalError(llvm::Twine const &Msg) const {
|
||||
LLVM_ATTRIBUTE_NORETURN void PrintFatalError(llvm::Twine const &Msg) const {
|
||||
assert(EvaluatingRecord && "not evaluating a record?");
|
||||
llvm::PrintFatalError(EvaluatingRecord->getLoc(), Msg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue