[llvm] r230045 - Use unreachable instead of assert(false) to silence MSVC warning
Reid Kleckner
reid at kleckner.net
Fri Feb 20 11:46:02 PST 2015
Author: rnk
Date: Fri Feb 20 13:46:02 2015
New Revision: 230045
URL: http://llvm.org/viewvc/llvm-project?rev=230045&view=rev
Log:
Use unreachable instead of assert(false) to silence MSVC warning
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=230045&r1=230044&r2=230045&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Fri Feb 20 13:46:02 2015
@@ -648,7 +648,7 @@ private:
case PhiState::Conflict:
return stateA;
}
- assert(false && "only three states!");
+ llvm_unreachable("only three states!");
}
};
}
More information about the llvm-commits
mailing list