[clang-tools-extra] r251265 - assert(false) -> llvm_unreachable.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 25 15:03:00 PDT 2015
Author: d0k
Date: Sun Oct 25 17:03:00 2015
New Revision: 251265
URL: http://llvm.org/viewvc/llvm-project?rev=251265&view=rev
Log:
assert(false) -> llvm_unreachable.
Modified:
clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp?rev=251265&r1=251264&r2=251265&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/readability/ImplicitBoolCastCheck.cpp Sun Oct 25 17:03:00 2015
@@ -82,7 +82,7 @@ getZeroLiteralToCompareWithForGivenType(
return Context.getLangOpts().CPlusPlus11 ? "nullptr" : "0";
default:
- assert(false && "Unexpected cast kind");
+ llvm_unreachable("Unexpected cast kind");
}
return "";
}
More information about the cfe-commits
mailing list