r345950 - Fix -Wimplicit-fallthrough warning in LLVM_ENABLE_ASSERTIONS=Off builds
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 1 21:09:08 PDT 2018
Author: maskray
Date: Thu Nov 1 21:09:08 2018
New Revision: 345950
URL: http://llvm.org/viewvc/llvm-project?rev=345950&view=rev
Log:
Fix -Wimplicit-fallthrough warning in LLVM_ENABLE_ASSERTIONS=Off builds
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BasicValueFactory.cpp?rev=345950&r1=345949&r2=345950&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BasicValueFactory.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BasicValueFactory.cpp Thu Nov 1 21:09:08 2018
@@ -207,7 +207,7 @@ BasicValueFactory::evalAPSInt(BinaryOper
const llvm::APSInt& V1, const llvm::APSInt& V2) {
switch (Op) {
default:
- assert(false && "Invalid Opcode.");
+ llvm_unreachable("Invalid Opcode.");
case BO_Mul:
return &getValue( V1 * V2 );
More information about the cfe-commits
mailing list