[lld] r239271 - COFF: Fix typo.
Rui Ueyama
ruiu at google.com
Sun Jun 7 16:10:50 PDT 2015
Author: ruiu
Date: Sun Jun 7 18:10:50 2015
New Revision: 239271
URL: http://llvm.org/viewvc/llvm-project?rev=239271&view=rev
Log:
COFF: Fix typo.
This change doesn't change its functionality since the value
passed here is converted to uint16_t immediately.
Modified:
lld/trunk/COFF/Chunks.cpp
Modified: lld/trunk/COFF/Chunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Chunks.cpp?rev=239271&r1=239270&r2=239271&view=diff
==============================================================================
--- lld/trunk/COFF/Chunks.cpp (original)
+++ lld/trunk/COFF/Chunks.cpp Sun Jun 7 18:10:50 2015
@@ -88,7 +88,7 @@ void SectionChunk::addAssociative(Sectio
AssocChildren.push_back(Child);
}
-static void add16(uint8_t *P, int32_t V) { write16le(P, read16le(P) + V); }
+static void add16(uint8_t *P, int16_t V) { write16le(P, read16le(P) + V); }
static void add32(uint8_t *P, int32_t V) { write32le(P, read32le(P) + V); }
static void add64(uint8_t *P, int64_t V) { write64le(P, read64le(P) + V); }
More information about the llvm-commits
mailing list