diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-20 14:50:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-20 14:50:24 +0000 |
commit | c8f9da50ecb4e7a855a57bcd2bb8506396fc322c (patch) | |
tree | b973bc42e00ba8f072beb30e52a6c67bd8dc81a5 | |
parent | c63a46ef39ca1e2065c98206a9e00e4bc0731c71 (diff) | |
download | bcm5719-llvm-c8f9da50ecb4e7a855a57bcd2bb8506396fc322c.tar.gz bcm5719-llvm-c8f9da50ecb4e7a855a57bcd2bb8506396fc322c.zip |
Use cast instead of dyn_cast.
llvm-svn: 55052
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUOperands.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUOperands.td b/llvm/lib/Target/CellSPU/SPUOperands.td index d9baf454a7c..252f2f84587 100644 --- a/llvm/lib/Target/CellSPU/SPUOperands.td +++ b/llvm/lib/Target/CellSPU/SPUOperands.td @@ -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); }]>; |