summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 50ee08fa1f9..f7a06158eea 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -472,7 +472,7 @@ void MCMachOStreamer::FinishImpl() {
const MCSymbol *CurrentAtom = nullptr;
for (MCSection::iterator it2 = it->begin(), ie2 = it->end(); it2 != ie2;
++it2) {
- if (const MCSymbol *Symbol = DefiningSymbolMap.lookup(it2))
+ if (const MCSymbol *Symbol = DefiningSymbolMap.lookup(&*it2))
CurrentAtom = Symbol;
it2->setAtom(CurrentAtom);
}
OpenPOWER on IntegriCloud