aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CellSPU
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-20 14:50:24 +0000
committerDan Gohman <gohman@apple.com>2008-08-20 14:50:24 +0000
commitd8ed2a718460843ca9b0a3e5022fbad5f623648f (patch)
tree77147e4d0522489ec394d9a1391806a222663716 /lib/Target/CellSPU
parent7a30bc4e7c034ecd0a3bcbfb385ac2a129e6583c (diff)
downloadexternal_llvm-d8ed2a718460843ca9b0a3e5022fbad5f623648f.zip
external_llvm-d8ed2a718460843ca9b0a3e5022fbad5f623648f.tar.gz
external_llvm-d8ed2a718460843ca9b0a3e5022fbad5f623648f.tar.bz2
Use cast instead of dyn_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55052 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU')
-rw-r--r--lib/Target/CellSPU/SPUOperands.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CellSPU/SPUOperands.td b/lib/Target/CellSPU/SPUOperands.td
index d9baf45..252f2f8 100644
--- a/lib/Target/CellSPU/SPUOperands.td
+++ b/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);
}]>;