mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #40230 from CodaFi/noreturn-of-the-king
Silence Some Warnings
This commit is contained in:
@@ -2206,8 +2206,8 @@ ClangImporter::Implementation::Implementation(
|
||||
EnableClangSPI(ctx.ClangImporterOpts.EnableClangSPI),
|
||||
IsReadingBridgingPCH(false),
|
||||
CurrentVersion(ImportNameVersion::fromOptions(ctx.LangOpts)),
|
||||
BridgingHeaderLookupTable(new SwiftLookupTable(nullptr)),
|
||||
BuffersForDiagnostics(ctx.SourceMgr),
|
||||
BridgingHeaderLookupTable(new SwiftLookupTable(nullptr)),
|
||||
platformAvailability(ctx.LangOpts), nameImporter(),
|
||||
DisableSourceImport(ctx.ClangImporterOpts.DisableSourceImport),
|
||||
DWARFImporter(dwarfImporterDelegate) {}
|
||||
|
||||
@@ -91,7 +91,8 @@ static bool isRequirement(Node::Kind kind) {
|
||||
// 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,
|
||||
const char *expr) {
|
||||
fprintf(stderr, "%s:%u: assertion failed for Node %p: %s", file, line, node,
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace swift {
|
||||
namespace Demangle {
|
||||
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);
|
||||
|
||||
SWIFT_END_INLINE_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user