diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-26 17:02:45 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-26 17:02:45 +0000 |
commit | eda2f2bd47c01c810fea57e9d2f4c3c94a37411d (patch) | |
tree | c61190402ad72b0e875817015129f27522e4b69c /lib/Target | |
parent | 45ee6d6dc54904f50e242cf9e32bee92f15a8f46 (diff) | |
download | external_llvm-eda2f2bd47c01c810fea57e9d2f4c3c94a37411d.zip external_llvm-eda2f2bd47c01c810fea57e9d2f4c3c94a37411d.tar.gz external_llvm-eda2f2bd47c01c810fea57e9d2f4c3c94a37411d.tar.bz2 |
Minor bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 871ed0e..5ea12aa 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -628,19 +628,19 @@ bool X86DAGToDAGISel::MatchAddress(SDOperand N, X86ISelAddressMode &AM, AM.CP = CP->getConstVal(); AM.Align = CP->getAlignment(); AM.Disp += CP->getOffset(); - AM.isRIPRel = !isStatic; + AM.isRIPRel = !isAbs32; return false; } } else if (ExternalSymbolSDNode *S =dyn_cast<ExternalSymbolSDNode>(N0)) { if (isAbs32 || isRoot) { AM.ES = S->getSymbol(); - AM.isRIPRel = !isStatic; + AM.isRIPRel = !isAbs32; return false; } } else if (JumpTableSDNode *J = dyn_cast<JumpTableSDNode>(N0)) { if (isAbs32 || isRoot) { AM.JT = J->getIndex(); - AM.isRIPRel = !isStatic; + AM.isRIPRel = !isAbs32; return false; } } |