Use isPositionIndependent predicate. NFC.

llvm-svn: 273830
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 8b72a6c..87ce2de 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -326,7 +326,7 @@
     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.