From: Tom Stellard Date: Wed, 18 Jul 2012 16:22:33 +0000 (-0400) Subject: radeon/llvm: Use correct node type when lowering SETCC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=46d12c99a24cebe01cd00575b39961231dec47c8;p=mesa.git radeon/llvm: Use correct node type when lowering SETCC --- 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(),