summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-08 23:50:06 +0000
committerDan Gohman <gohman@apple.com>2008-12-08 23:50:06 +0000
commitbc55c2a18f2a7ee6d643c4b645078c97cb22952e (patch)
treed054ee04bb9e2b43a13dbad5a15b61e5a8781e8a /llvm/lib/Target/X86/X86FastISel.cpp
parent5f769e2d4006fb079c2848678c8ca0915e4bb3ce (diff)
downloadbcm5719-llvm-bc55c2a18f2a7ee6d643c4b645078c97cb22952e.tar.gz
bcm5719-llvm-bc55c2a18f2a7ee6d643c4b645078c97cb22952e.zip
Fix a couple of mistaken switch case fall-throughs. Thanks to Bill
for spotting these! llvm-svn: 60728
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 04a26303dcf..1b75cbcae43 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -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;
OpenPOWER on IntegriCloud