Merge pull request #40230 from CodaFi/noreturn-of-the-king

Silence Some Warnings
This commit is contained in:
Robert Widmann
2021-11-17 19:47:09 -08:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -2206,8 +2206,8 @@ ClangImporter::Implementation::Implementation(
EnableClangSPI(ctx.ClangImporterOpts.EnableClangSPI), EnableClangSPI(ctx.ClangImporterOpts.EnableClangSPI),
IsReadingBridgingPCH(false), IsReadingBridgingPCH(false),
CurrentVersion(ImportNameVersion::fromOptions(ctx.LangOpts)), CurrentVersion(ImportNameVersion::fromOptions(ctx.LangOpts)),
BridgingHeaderLookupTable(new SwiftLookupTable(nullptr)),
BuffersForDiagnostics(ctx.SourceMgr), BuffersForDiagnostics(ctx.SourceMgr),
BridgingHeaderLookupTable(new SwiftLookupTable(nullptr)),
platformAvailability(ctx.LangOpts), nameImporter(), platformAvailability(ctx.LangOpts), nameImporter(),
DisableSourceImport(ctx.ClangImporterOpts.DisableSourceImport), DisableSourceImport(ctx.ClangImporterOpts.DisableSourceImport),
DWARFImporter(dwarfImporterDelegate) {} DWARFImporter(dwarfImporterDelegate) {}

View File

@@ -91,7 +91,8 @@ static bool isRequirement(Node::Kind kind) {
// Public utility functions // // Public utility functions //
////////////////////////////////// //////////////////////////////////
LLVM_NODISCARD void swift::Demangle::failAssert(const char *file, unsigned line, LLVM_ATTRIBUTE_NORETURN void swift::Demangle::failAssert(const char *file,
unsigned line,
NodePointer node, NodePointer node,
const char *expr) { const char *expr) {
fprintf(stderr, "%s:%u: assertion failed for Node %p: %s", file, line, node, fprintf(stderr, "%s:%u: assertion failed for Node %p: %s", file, line, node,

View File

@@ -51,7 +51,7 @@ namespace swift {
namespace Demangle { namespace Demangle {
SWIFT_BEGIN_INLINE_NAMESPACE SWIFT_BEGIN_INLINE_NAMESPACE
LLVM_NODISCARD void failAssert(const char *file, unsigned line, LLVM_ATTRIBUTE_NORETURN void failAssert(const char *file, unsigned line,
NodePointer node, const char *expr); NodePointer node, const char *expr);
SWIFT_END_INLINE_NAMESPACE SWIFT_END_INLINE_NAMESPACE