assert(false) -> llvm_unreachable.

llvm-svn: 251265
This commit is contained in:
Benjamin Kramer 2015-10-25 22:03:00 +00:00
parent 7b6f77e85b
commit 6d505c07e5
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ getZeroLiteralToCompareWithForGivenType(CastKind CastExpressionKind,
return Context.getLangOpts().CPlusPlus11 ? "nullptr" : "0";
default:
assert(false && "Unexpected cast kind");
llvm_unreachable("Unexpected cast kind");
}
return "";
}