aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/MSP430
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-06-19 21:36:55 +0000
committerBill Wendling <isanbard@gmail.com>2013-06-19 21:36:55 +0000
commitba54bca472a15d0657e1b88776f7069042b60b4e (patch)
tree948ecae4dce7537acc3510cac2c64ab8ff313380 /lib/Target/MSP430
parentce1164be37e60f44057303fbf7ac02167012eba5 (diff)
downloadexternal_llvm-ba54bca472a15d0657e1b88776f7069042b60b4e.zip
external_llvm-ba54bca472a15d0657e1b88776f7069042b60b4e.tar.gz
external_llvm-ba54bca472a15d0657e1b88776f7069042b60b4e.tar.bz2
Access the TargetLoweringInfo from the TargetMachine object instead of caching it. The TLI may change between functions. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r--lib/Target/MSP430/MSP430ISelDAGToDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp b/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
index 76bc1e7..543f54c 100644
--- a/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
+++ b/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
@@ -259,7 +259,8 @@ bool MSP430DAGToDAGISel::SelectAddr(SDValue N,
}
Base = (AM.BaseType == MSP430ISelAddressMode::FrameIndexBase) ?
- CurDAG->getTargetFrameIndex(AM.Base.FrameIndex, TLI->getPointerTy()) :
+ CurDAG->getTargetFrameIndex(AM.Base.FrameIndex,
+ getTargetLowering()->getPointerTy()) :
AM.Base.Reg;
if (AM.GV)