summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:38:44 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-26 22:38:44 +0000
commita0e42848dab6116d17e44ca8ab69938911502b8d (patch)
tree1f436dd96b3c46d664eb8525fc3a96e71b66356a
parent9dfcab0b93626804c92a4d9633601549e12075a3 (diff)
Use isPositionIndependent predicate. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273830 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 8b72a6c2c79..87ce2de0542 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -326,7 +326,7 @@ TargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
return false;
// If the code is position independent we will have to add a base register.
- if (RM == Reloc::PIC_)
+ if (isPositionIndependent())
return false;
// Otherwise we can do it.