diff --git a/llvm/lib/Target/CellSPU/SPUOperands.td b/llvm/lib/Target/CellSPU/SPUOperands.td index d9baf454a7c8..252f2f845874 100644 --- a/llvm/lib/Target/CellSPU/SPUOperands.td +++ b/llvm/lib/Target/CellSPU/SPUOperands.td @@ -31,7 +31,7 @@ def LO16_vec : SDNodeXForm node"); - ConstantSDNode *CN = dyn_cast(OpVal); + ConstantSDNode *CN = cast(OpVal); return getI32Imm((unsigned)CN->getValue() & 0xffff); }]>; @@ -56,7 +56,7 @@ def HI16_vec : SDNodeXForm node"); - ConstantSDNode *CN = dyn_cast(OpVal); + ConstantSDNode *CN = cast(OpVal); return getI32Imm((unsigned)CN->getValue() >> 16); }]>;