mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
Turn a no-op assignment into an assertion.
r279456 guarantees that this condition is always satisfied. llvm-svn: 281426
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user