summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/IRMover.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Linker/IRMover.cpp')
-rw-r--r--llvm/lib/Linker/IRMover.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp
index f67bacedf1b..a9e5779fd46 100644
--- a/llvm/lib/Linker/IRMover.cpp
+++ b/llvm/lib/Linker/IRMover.cpp
@@ -1091,7 +1091,7 @@ void IRLinker::findNeededSubprograms() {
// Any needed SPs should have been mapped as they would be reached
// from the function linked in (either on the function itself for linked
// function bodies, or from DILocation on inlined instructions).
- if (!ValueMap.MD()[Op] && !ImportedEntitySPs.count(Op))
+ if (!ValueMap.getMappedMD(Op) && !ImportedEntitySPs.count(Op))
UnneededSubprograms.insert(Op);
}
}
OpenPOWER on IntegriCloud