diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-09 22:10:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-09 22:10:05 +0000 |
commit | 7c7ba9d2d587303a486f29c68416bd8391499f77 (patch) | |
tree | 31f226043acacf575a7f13fab2eb79647d931ae6 /lib/Target | |
parent | 54e2b142be6ac759e87dde8a643a7beaff0365df (diff) | |
download | external_llvm-7c7ba9d2d587303a486f29c68416bd8391499f77.zip external_llvm-7c7ba9d2d587303a486f29c68416bd8391499f77.tar.gz external_llvm-7c7ba9d2d587303a486f29c68416bd8391499f77.tar.bz2 |
Fix a bug in PPCTargetLowering::isLegalAddressingMode, scales other than 0/1/2
are always unsupported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 4b2d448..13ab52a 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -3389,6 +3389,9 @@ bool PPCTargetLowering::isLegalAddressingMode(const AddrMode &AM, return false; // Allow 2*r as r+r. break; + default: + // No other scales are supported. + return false; } return true; |