mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
7a30bc4e7c
commit
d8ed2a7184
@ -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);
|
||||
}]>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user