Use cast instead of dyn_cast.
authorDan Gohman <gohman@apple.com>
Wed, 20 Aug 2008 14:50:24 +0000 (14:50 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 20 Aug 2008 14:50:24 +0000 (14:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55052 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CellSPU/SPUOperands.td

index d9baf454a7c8a119156a2e550352cbde7bb5f460..252f2f845874c83660e824447facd7662d93c6aa 100644 (file)
@@ -31,7 +31,7 @@ def LO16_vec : SDNodeXForm<scalar_to_vector, [{
   }
   
   assert(OpVal.Val != 0 && "LO16_vec did not locate a <defined> node");
-  ConstantSDNode *CN = dyn_cast<ConstantSDNode>(OpVal);
+  ConstantSDNode *CN = cast<ConstantSDNode>(OpVal);
   return getI32Imm((unsigned)CN->getValue() & 0xffff);
 }]>;
 
@@ -56,7 +56,7 @@ def HI16_vec : SDNodeXForm<scalar_to_vector, [{
   }
   
   assert(OpVal.Val != 0 && "HI16_vec did not locate a <defined> node");
-  ConstantSDNode *CN = dyn_cast<ConstantSDNode>(OpVal);
+  ConstantSDNode *CN = cast<ConstantSDNode>(OpVal);
   return getI32Imm((unsigned)CN->getValue() >> 16);
 }]>;