From: Rafael Espindola Date: Sun, 26 Jun 2016 22:38:44 +0000 (+0000) Subject: Use isPositionIndependent predicate. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0e42848dab6116d17e44ca8ab69938911502b8d;p=llvm Use isPositionIndependent predicate. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273830 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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.