Use cast instead of dyn_cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-08-20 14:50:24 +00:00
parent 7a30bc4e7c
commit d8ed2a7184

View File

@ -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);
}]>;