From a070ee5ef52f519772e02be64c307857994d6daf Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 20 Feb 2015 19:46:02 +0000 Subject: Use unreachable instead of assert(false) to silence MSVC warning llvm-svn: 230045 --- llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp') diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index a11e13d88b8..5ce4267c1a0 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -648,7 +648,7 @@ private: case PhiState::Conflict: return stateA; } - assert(false && "only three states!"); + llvm_unreachable("only three states!"); } }; } -- cgit v1.2.3