COFF: Add an assertion. NFC.
authorRui Ueyama <ruiu@google.com>
Sun, 14 Jun 2015 22:01:39 +0000 (22:01 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 14 Jun 2015 22:01:39 +0000 (22:01 +0000)
r239458 changed callee side of this function, so Live can never be
true when this function is called.

llvm-svn: 239705

lld/COFF/Chunks.cpp

index cc7e724..72fd1e9 100644 (file)
@@ -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.