[LegalizeTypes] Use report_fatal_error instead of llvm_unreachable in the default...
authorCraig Topper <craig.topper@intel.com>
Thu, 31 Jan 2019 00:04:48 +0000 (00:04 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 31 Jan 2019 00:04:48 +0000 (00:04 +0000)
commit49c4c68919ae1be62665e6f0a58d97ae6aad1125
tree4f3810097470821f3b6de2a95809d1f32b750fde
parent8bdc203d4b2ddab14d8b2a60156aba326ad59d94
[LegalizeTypes] Use report_fatal_error instead of llvm_unreachable in the default case of some type legalization handlers that can be reached with intrinsics with result or operands that aren't legal types.

These can be triggered by mistakenly using a 64-bit mode only intrinsics with a -mtriple=i686. Using report_fatal_error gives a better experience for this mistake in release builds instead of probably crashing.

We already do this for some of the vector type legalization handles.

llvm-svn: 352699
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp