diff options
| -rw-r--r-- | lld/COFF/SymbolTable.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index a64267ffb56..b27bc3d5340 100644 --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -179,9 +179,9 @@ bool SymbolTable::handleMinGWAutomaticImport(Symbol *Sym, StringRef Name) { if (Refptr && Refptr->getChunk()->getSize() == PtrSize) { SectionChunk *SC = dyn_cast_or_null<SectionChunk>(Refptr->getChunk()); if (SC && SC->Relocs.size() == 1 && *SC->symbols().begin() == Sym) { - log("Replacing .refptr." + Name + " with " + Imp->getName()); - Refptr->getChunk()->Live = false; - Refptr->replaceKeepingName(Imp, sizeof(DefinedImportData)); + log("Replacing .refptr." + Name + " with " + Imp->getName()); + Refptr->getChunk()->Live = false; + Refptr->replaceKeepingName(Imp, sizeof(DefinedImportData)); } } return true; |

