summaryrefslogtreecommitdiffstats
path: root/lld/lib/Passes/GOTPass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Passes/GOTPass.cpp')
-rw-r--r--lld/lib/Passes/GOTPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Passes/GOTPass.cpp b/lld/lib/Passes/GOTPass.cpp
index 9827952a295..4729ca1cb55 100644
--- a/lld/lib/Passes/GOTPass.cpp
+++ b/lld/lib/Passes/GOTPass.cpp
@@ -75,7 +75,7 @@ void GOTPass::perform(std::unique_ptr<MutableFile> &mergedFile) {
for (const Reference *ref : *atom) {
// Look at instructions accessing the GOT.
bool canBypassGOT;
- if (!isGOTAccess(ref->kind(), canBypassGOT))
+ if (!isGOTAccess(*ref, canBypassGOT))
continue;
const Atom *target = ref->target();
assert(target != nullptr);
OpenPOWER on IntegriCloud