OSDN Git Service

Fix a couple of mistaken switch case fall-throughs. Thanks to Bill
authorDan Gohman <gohman@apple.com>
Mon, 8 Dec 2008 23:50:06 +0000 (23:50 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 8 Dec 2008 23:50:06 +0000 (23:50 +0000)
for spotting these!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60728 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FastISel.cpp

index 04a2630..1b75cbc 100644 (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;