[llvm-commits] [llvm] r133858 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Frits van Bommel
fvbommel at gmail.com
Sat Jun 25 02:23:40 PDT 2011
On 25 June 2011 04:04, Chad Rosier <mcrosier at apple.com> wrote:
> + } else if (Arg.getOpcode() == ISD::FrameIndex && Flags.isByVal()) {
> + FrameIndexSDNode *FINode = dyn_cast<FrameIndexSDNode>(Arg);
> + FI = FINode->getIndex();
That dyn_cast<> should probably be a cast<>, because
1) if it fails it's an error anyway, and
2) you're already checking that it can't fail beforehand.
More information about the llvm-commits
mailing list