diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-03-27 02:55:31 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-03-27 02:55:31 +0000 |
commit | 13daee30824d02b4657a2a97129eebfe3f9b9107 (patch) | |
tree | 57e6f3478ec58dfc5909c4571100f06f3a2418f0 /lib/Target/Mips | |
parent | 56e1ed53f515704f2171155e19d1dee7990762a3 (diff) | |
download | external_llvm-13daee30824d02b4657a2a97129eebfe3f9b9107.zip external_llvm-13daee30824d02b4657a2a97129eebfe3f9b9107.tar.gz external_llvm-13daee30824d02b4657a2a97129eebfe3f9b9107.tar.bz2 |
Fix bug in LowerConstantPool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index ecde5b6..f7da0ec 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -1712,7 +1712,7 @@ LowerConstantPool(SDValue Op, SelectionDAG &DAG) const // SDValue GOT = DAG.getGLOBAL_OFFSET_TABLE(MVT::i32); // ResNode = DAG.getNode(ISD::ADD, MVT::i32, GOT, GPRelNode); - if (getTargetMachine().getRelocationModel() != Reloc::PIC_) { + if (getTargetMachine().getRelocationModel() != Reloc::PIC_ && !IsN64) { SDValue CPHi = DAG.getTargetConstantPool(C, MVT::i32, N->getAlignment(), N->getOffset(), MipsII::MO_ABS_HI); SDValue CPLo = DAG.getTargetConstantPool(C, MVT::i32, N->getAlignment(), |