Fix a couple of mistaken switch case fall-throughs. Thanks to Bill

for spotting these!

llvm-svn: 60728
This commit is contained in:
Dan Gohman 2008-12-08 23:50:06 +00:00
parent 5f769e2d40
commit bc55c2a18f
1 changed files with 2 additions and 0 deletions

View File

@ -332,11 +332,13 @@ bool X86FastISel::X86SelectAddress(Value *V, X86AddressMode &AM, bool isCall) {
// Look past no-op inttoptrs.
if (TLI.getValueType(U->getOperand(0)->getType()) == TLI.getPointerTy())
return X86SelectAddress(U->getOperand(0), AM, isCall);
break;
case Instruction::PtrToInt:
// Look past no-op ptrtoints.
if (TLI.getValueType(U->getType()) == TLI.getPointerTy())
return X86SelectAddress(U->getOperand(0), AM, isCall);
break;
case Instruction::Alloca: {
if (isCall) break;