Skip to content

Commit f885e02

Browse files
committed
Revert "[clang] Silence GCC warnings about control reaching end of non void function"
This reverts commit 90a2e0b. Reverting parent CL Pull Request: #108646
1 parent ee3f5c2 commit f885e02

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

clang/include/clang/Basic/DiagnosticIDs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "clang/Basic/LLVM.h"
1919
#include "llvm/ADT/IntrusiveRefCntPtr.h"
2020
#include "llvm/ADT/StringRef.h"
21-
#include "llvm/Support/ErrorHandling.h"
2221
#include <optional>
2322
#include <vector>
2423

@@ -311,7 +310,6 @@ class DiagnosticIDs : public RefCountedBase<DiagnosticIDs> {
311310
return {diag::Severity::Fatal, std::string(Message), CLASS_ERROR,
312311
/*ShowInSystemHeader*/ true};
313312
}
314-
llvm_unreachable("Fully covered switch above!");
315313
}());
316314
}
317315

clang/lib/Sema/SemaOverload.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7331,7 +7331,6 @@ static bool diagnoseDiagnoseIfAttrsWith(Sema &S, const NamedDecl *ND,
73317331
case DiagnoseIfAttr::DS_error:
73327332
return diag::Severity::Error;
73337333
}
7334-
llvm_unreachable("Fully covered switch above!");
73357334
};
73367335

73377336
for (const auto *DIA : llvm::make_range(WarningBegin, Attrs.end()))

0 commit comments

Comments
 (0)