From 46d12c99a24cebe01cd00575b39961231dec47c8 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 18 Jul 2012 12:22:33 -0400 Subject: [PATCH] radeon/llvm: Use correct node type when lowering SETCC --- src/gallium/drivers/radeon/AMDILISelLowering.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeon/AMDILISelLowering.cpp b/src/gallium/drivers/radeon/AMDILISelLowering.cpp index fb335835425..b36fe42af9b 100644 --- a/src/gallium/drivers/radeon/AMDILISelLowering.cpp +++ b/src/gallium/drivers/radeon/AMDILISelLowering.cpp @@ -1375,6 +1375,7 @@ AMDILTargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG) const SetCCOpcode, LHS.getValueType().getSimpleVT().SimpleTy); assert((AMDILCC != AMDILCC::COND_ERROR) && "Invalid SetCC!"); + assert(Op.getValueType() == MVT::i32); Cond = DAG.getNode( ISD::SELECT_CC, Op.getDebugLoc(), -- 2.30.2