Use cast<> for unchecked use
[oota-llvm.git] / lib / Target / R600 / R600ISelLowering.cpp
index 60b42fb9d0b8ad7cb96a7b26333c313e508fc0b9..489565e657952d1dc23d057f4cf285e5ef7d67b7 100644 (file)
@@ -1829,7 +1829,7 @@ FoldOperand(SDNode *ParentNode, unsigned SrcIdx, SDValue &Src, SDValue &Neg,
       }
     }
 
-    ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(CstOffset);
+    ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset);
     Consts.push_back(Cst->getZExtValue());
     if (!TII->fitsConstReadLimitations(Consts)) {
       return false;