]> granicus.if.org Git - llvm/commitdiff
Use isPositionIndependent predicate. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 26 Jun 2016 22:38:44 +0000 (22:38 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 26 Jun 2016 22:38:44 +0000 (22:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273830 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/TargetLowering.cpp

index 8b72a6c2c79765ab1e7943c99b5ee6896c769570..87ce2de0542d1165488a56b424e5b0d434e6ff20 100644 (file)
@@ -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.