Skip to content

Commit 2b59074

Browse files
committed
[PECOFF] Fixed a bug which caused DataDirectoryChunk to write to a wrong offset in the file buffer
Patch by Ron Ofir. llvm-svn: 187219
1 parent b028074 commit 2b59074

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ class DataDirectoryChunk : public AtomChunk {
388388
}
389389

390390
virtual void write(uint8_t *fileBuffer) {
391-
fileBuffer += fileOffset();
392391
for (const AtomLayout *layout : _atomLayouts) {
393392
if (!layout)
394393
continue;

0 commit comments

Comments
 (0)