[PATCH] D47340: [ClangDiagnostics] Silence warning about fallthrough after PrintFatalError
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat May 26 02:28:05 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL333340: [ClangDiagnostics] Silence warning about fallthrough after PrintFatalError (authored by xbolva00, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D47340?vs=148523&id=148708#toc
Repository:
rL LLVM
https://reviews.llvm.org/D47340
Files:
cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
Index: cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
===================================================================
--- cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
+++ cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
@@ -633,7 +633,7 @@
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);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47340.148708.patch
Type: text/x-patch
Size: 561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180526/ca2e6904/attachment-0001.bin>
More information about the cfe-commits
mailing list