aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-11-19 22:39:56 +0000
committerEric Christopher <echristo@apple.com>2010-11-19 22:39:56 +0000
commitb37165808359c71b20291de51368f9efb65e7108 (patch)
tree76ec399a6feddec3d6763fba93861de27a41809a /lib
parent2d630d7bc9ae746d353211c3532dfa8e4f0ce9d5 (diff)
downloadexternal_llvm-b37165808359c71b20291de51368f9efb65e7108.zip
external_llvm-b37165808359c71b20291de51368f9efb65e7108.tar.gz
external_llvm-b37165808359c71b20291de51368f9efb65e7108.tar.bz2
Don't need to save piecemeal now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 719cf5a..c991c4e 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -647,8 +647,7 @@ bool ARMFastISel::ARMComputeAddress(const Value *Obj, Address &Addr) {
break;
}
case Instruction::GetElementPtr: {
- int SavedOffset = Addr.Offset;
- unsigned SavedBase = Addr.Base.Reg;
+ Address SavedAddr = Addr;
int TmpOffset = Addr.Offset;
// Iterate through the GEP folding the constants into offsets where
@@ -689,8 +688,7 @@ bool ARMFastISel::ARMComputeAddress(const Value *Obj, Address &Addr) {
if (ARMComputeAddress(U->getOperand(0), Addr)) return true;
// We failed, restore everything and try the other options.
- Addr.Offset = SavedOffset;
- Addr.Base.Reg = SavedBase;
+ Addr = SavedAddr;
unsupported_gep:
break;