mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Use cast<> for unchecked use
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
76aa42c199
commit
b36e348af3
@ -1822,8 +1822,8 @@ FoldOperand(SDNode *ParentNode, unsigned SrcIdx, SDValue &Src, SDValue &Neg,
|
||||
if (RegisterSDNode *Reg =
|
||||
dyn_cast<RegisterSDNode>(ParentNode->getOperand(OtherSrcIdx))) {
|
||||
if (Reg->getReg() == AMDGPU::ALU_CONST) {
|
||||
ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(
|
||||
ParentNode->getOperand(OtherSelIdx));
|
||||
ConstantSDNode *Cst
|
||||
= cast<ConstantSDNode>(ParentNode->getOperand(OtherSelIdx));
|
||||
Consts.push_back(Cst->getZExtValue());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user