summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-06-06 00:43:09 +0000
committerBill Wendling <isanbard@gmail.com>2013-06-06 00:43:09 +0000
commit6a2e7ac0b6647a409394e58b385e579ea62b5cba (patch)
treed96f9d55cc9f4fcbae8b0c8c496493ee0e0f5343 /lib/Target/Mips/MipsSEISelDAGToDAG.cpp
parentf2d03d74ffe05d08ac7dccbb81f41d996a1f1d2a (diff)
downloadllvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.tar.gz
llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.tar.bz2
llvm-6a2e7ac0b6647a409394e58b385e579ea62b5cba.tar.xz
Cache the TargetLowering info object as a pointer.
Caching it as a pointer allows us to reset it if the TargetMachine object changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSEISelDAGToDAG.cpp')
-rw-r--r--lib/Target/Mips/MipsSEISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsSEISelDAGToDAG.cpp b/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
index a6f848f776..7684bec703 100644
--- a/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
+++ b/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
@@ -402,7 +402,7 @@ std::pair<bool, SDNode*> MipsSEDAGToDAGISel::selectNode(SDNode *Node) {
}
case MipsISD::ThreadPointer: {
- EVT PtrVT = TLI.getPointerTy();
+ EVT PtrVT = TLI->getPointerTy();
unsigned RdhwrOpc, SrcReg, DestReg;
if (PtrVT == MVT::i32) {