From a68ce075bae3d3d2e0bdf40b0a4645f12834b6be Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 20 Feb 2015 19:46:02 +0000 Subject: [PATCH] Use unreachable instead of assert(false) to silence MSVC warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230045 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index a11e13d88b8..5ce4267c1a0 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/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!"); } }; } -- 2.34.1