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); }
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); }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits