radeon/llvm: Use correct node type when lowering SETCC
authorTom Stellard <thomas.stellard@amd.com>
Wed, 18 Jul 2012 16:22:33 +0000 (12:22 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 27 Jul 2012 17:08:06 +0000 (17:08 +0000)
src/gallium/drivers/radeon/AMDILISelLowering.cpp

index fb33583542529ec6fc4dd82ed638594b96834df6..b36fe42af9b919dcb1d513450f652a5b04337828 100644 (file)
@@ -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(),