make this fail even in non-assert builds.
authorChris Lattner <sabre@nondot.org>
Thu, 8 Mar 2007 07:07:03 +0000 (07:07 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Mar 2007 07:07:03 +0000 (07:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35025 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index f833c125041926289cf5611a07970498f6715450..581b402aeae8907417e7728b7672351405d31c03 100644 (file)
@@ -2883,8 +2883,10 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
         // Memory input.
         
         // Check that the operand isn't a float.
-        if (!MVT::isInteger(InOperandVal.getValueType()))
-          assert(0 && "MATCH FAIL!");
+        if (!MVT::isInteger(InOperandVal.getValueType())) {
+          cerr << "Match failed, can't handle floats yet!\n";
+          exit(1);
+        }
         
         // Extend/truncate to the right pointer type if needed.
         MVT::ValueType PtrType = TLI.getPointerTy();