[llvm] r208627 - Use cast<> for unchecked use

Matt Arsenault Matthew.Arsenault at amd.com
Mon May 12 13:42:57 PDT 2014


Author: arsenm
Date: Mon May 12 15:42:57 2014
New Revision: 208627

URL: http://llvm.org/viewvc/llvm-project?rev=208627&view=rev
Log:
Use cast<> for unchecked use

Modified:
    llvm/trunk/lib/Target/R600/R600ISelLowering.cpp

Modified: llvm/trunk/lib/Target/R600/R600ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600ISelLowering.cpp?rev=208627&r1=208626&r2=208627&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600ISelLowering.cpp Mon May 12 15:42:57 2014
@@ -1829,7 +1829,7 @@ FoldOperand(SDNode *ParentNode, unsigned
       }
     }
 
-    ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(CstOffset);
+    ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset);
     Consts.push_back(Cst->getZExtValue());
     if (!TII->fitsConstReadLimitations(Consts)) {
       return false;





More information about the llvm-commits mailing list