Turn a no-op assignment into an assertion.

r279456 guarantees that this condition is always satisfied.

llvm-svn: 281426
This commit is contained in:
Rui Ueyama
2016-09-14 00:09:50 +00:00
parent 38dbd3eea9
commit 2d7fe598f2

View File

@@ -429,7 +429,7 @@ template <class ELFT> void InputSection<ELFT>::writeTo(uint8_t *Buf) {
template <class ELFT>
void InputSection<ELFT>::replace(InputSection<ELFT> *Other) {
this->Alignment = std::max(this->Alignment, Other->Alignment);
assert(Other->Alignment <= this->Alignment);
Other->Repl = this->Repl;
Other->Live = false;
}