diff options
Diffstat (limited to 'compilerplugins/clang/nullptr.cxx')
-rw-r--r-- | compilerplugins/clang/nullptr.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compilerplugins/clang/nullptr.cxx b/compilerplugins/clang/nullptr.cxx index 30458d7f7f5a..89535daa9849 100644 --- a/compilerplugins/clang/nullptr.cxx +++ b/compilerplugins/clang/nullptr.cxx @@ -29,11 +29,9 @@ char const * kindName(Expr::NullPointerConstantKind kind) { case Expr::NPCK_GNUNull: return "GNUNull"; case Expr::NPCK_NotNull: - assert(false); // cannot happen - // fall through - default: - std::abort(); + break; // cannot happen } + llvm_unreachable("unknown null pointer kind"); } bool isAnyKindOfPointerType(QualType type) { |