We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aa07f8 commit 8620bb9Copy full SHA for 8620bb9
lld/COFF/Writer.cpp
@@ -102,7 +102,7 @@ class DebugDirectoryChunk : public NonSectionChunk {
102
void writeTo(uint8_t *b) const override {
103
auto *d = reinterpret_cast<debug_directory *>(b);
104
105
- for (const std::pair<COFF::DebugType, Chunk *> record : records) {
+ for (const std::pair<COFF::DebugType, Chunk *>& record : records) {
106
Chunk *c = record.second;
107
OutputSection *os = c->getOutputSection();
108
uint64_t offs = os->getFileOff() + (c->getRVA() - os->getRVA());
0 commit comments