| commit | 4108f3f3938e583392edd5c1d89b3f0fd917e76b | [log] [tgz] |
|---|---|---|
| author | Rui Ueyama <ruiu@google.com> | Sun Jun 14 22:01:39 2015 +0000 |
| committer | Rui Ueyama <ruiu@google.com> | Sun Jun 14 22:01:39 2015 +0000 |
| tree | 248bd062865f23f24698c87fbe5ef4790b86dcb1 | |
| parent | 2bf6a122387d57e1f5e9bf52bfd11e6a8849ab6b [diff] [blame] |
COFF: Add an assertion. NFC. r239458 changed callee side of this function, so Live can never be true when this function is called. llvm-svn: 239705
diff --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp index cc7e724..72fd1e9 100644 --- a/lld/COFF/Chunks.cpp +++ b/lld/COFF/Chunks.cpp
@@ -64,8 +64,7 @@ } void SectionChunk::mark() { - if (Live) - return; + assert(!Live); Live = true; // Mark all symbols listed in the relocation table for this section.