From 0d97426b7b3d57cc3ff651a400b758733f2058a8 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 6 Nov 2007 22:11:54 +0000 Subject: [PATCH] Remainder operations must be either integer or floating-point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43781 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index d688465234b..6e58631f0c1 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2935,7 +2935,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { SDOperand Dummy; Result = ExpandLibCall(TLI.getLibcallName(LC), Node, isSigned, Dummy); } - } else if (MVT::isFloatingPoint(VT)) { + } else { + assert(MVT::isFloatingPoint(VT) && + "remainder op must have integer or floating-point type"); if (MVT::isVector(VT)) { Result = LegalizeOp(UnrollVectorOp(Op)); } else {