aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d9baf454a7..252f2f8458 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);
}]>;