mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-04 06:12:18 +00:00
Replace dyn_cast<> with cast<> since the cast is already guarded by the necessary check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84149460d5
commit
14d71aac84
@ -2506,7 +2506,7 @@ bool MatchingStackOffset(SDValue Arg, unsigned Offset, ISD::ArgFlagsTy Flags,
|
|||||||
return false;
|
return false;
|
||||||
FI = FINode->getIndex();
|
FI = FINode->getIndex();
|
||||||
} else if (Arg.getOpcode() == ISD::FrameIndex && Flags.isByVal()) {
|
} else if (Arg.getOpcode() == ISD::FrameIndex && Flags.isByVal()) {
|
||||||
FrameIndexSDNode *FINode = dyn_cast<FrameIndexSDNode>(Arg);
|
FrameIndexSDNode *FINode = cast<FrameIndexSDNode>(Arg);
|
||||||
FI = FINode->getIndex();
|
FI = FINode->getIndex();
|
||||||
Bytes = Flags.getByValSize();
|
Bytes = Flags.getByValSize();
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user