From c8f9da50ecb4e7a855a57bcd2bb8506396fc322c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 20 Aug 2008 14:50:24 +0000 Subject: [PATCH] Use cast instead of dyn_cast. llvm-svn: 55052 --- llvm/lib/Target/CellSPU/SPUOperands.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }]>;