From 026e9e8c343877c7e98b051c794a53413c459732 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Sun, 25 Oct 2015 21:44:55 +0000 Subject: [PATCH] [clang-tidy] Add return value for non-assert builds. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@251262 91177308-0d34-0410-b5e6-96231b3b80d8 --- clang-tidy/readability/ImplicitBoolCastCheck.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang-tidy/readability/ImplicitBoolCastCheck.cpp b/clang-tidy/readability/ImplicitBoolCastCheck.cpp index 764fd5d..49ddf7e 100644 --- a/clang-tidy/readability/ImplicitBoolCastCheck.cpp +++ b/clang-tidy/readability/ImplicitBoolCastCheck.cpp @@ -84,6 +84,7 @@ getZeroLiteralToCompareWithForGivenType(CastKind CastExpressionKind, default: assert(false && "Unexpected cast kind"); } + return ""; } bool isUnaryLogicalNotOperator(const Stmt *Statement) {