[llvm-commits] [llvm] r60728 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp
Dan Gohman
gohman at apple.com
Mon Dec 8 15:50:07 PST 2008
Author: djg
Date: Mon Dec 8 17:50:06 2008
New Revision: 60728
URL: http://llvm.org/viewvc/llvm-project?rev=60728&view=rev
Log:
Fix a couple of mistaken switch case fall-throughs. Thanks to Bill
for spotting these!
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=60728&r1=60727&r2=60728&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Mon Dec 8 17:50:06 2008
@@ -332,11 +332,13 @@
// 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;
More information about the llvm-commits
mailing list