Replace dyn_cast<> with cast<> since the cast is already guarded by the necessary check.

llvm-svn: 133874
This commit is contained in:
Chad Rosier 2011-06-25 18:51:28 +00:00
parent 5b68fc5126
commit 9a11e3e082

View File

@ -2506,7 +2506,7 @@ bool MatchingStackOffset(SDValue Arg, unsigned Offset, ISD::ArgFlagsTy Flags,
return false;
FI = FINode->getIndex();
} else if (Arg.getOpcode() == ISD::FrameIndex && Flags.isByVal()) {
FrameIndexSDNode *FINode = dyn_cast<FrameIndexSDNode>(Arg);
FrameIndexSDNode *FINode = cast<FrameIndexSDNode>(Arg);
FI = FINode->getIndex();
Bytes = Flags.getByValSize();
} else