[lld] r239705 - COFF: Add an assertion. NFC.
Rui Ueyama
ruiu at google.com
Sun Jun 14 15:01:39 PDT 2015
Author: ruiu
Date: Sun Jun 14 17:01:39 2015
New Revision: 239705
URL: http://llvm.org/viewvc/llvm-project?rev=239705&view=rev
Log:
COFF: Add an assertion. NFC.
r239458 changed callee side of this function, so Live can never be
true when this function is called.
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=239705&r1=239704&r2=239705&view=diff
==============================================================================
--- lld/trunk/COFF/Chunks.cpp (original)
+++ lld/trunk/COFF/Chunks.cpp Sun Jun 14 17:01:39 2015
@@ -64,8 +64,7 @@ void SectionChunk::writeTo(uint8_t *Buf)
}
void SectionChunk::mark() {
- if (Live)
- return;
+ assert(!Live);
Live = true;
// Mark all symbols listed in the relocation table for this section.
More information about the llvm-commits
mailing list