mirror of https://github.com/microsoft/clang.git
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e7361deef2
commit
e42b46292f
|
@ -633,7 +633,7 @@ struct DiagnosticTextBuilder {
|
||||||
return It->second.Root;
|
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?");
|
assert(EvaluatingRecord && "not evaluating a record?");
|
||||||
llvm::PrintFatalError(EvaluatingRecord->getLoc(), Msg);
|
llvm::PrintFatalError(EvaluatingRecord->getLoc(), Msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue