[lld-link] Fix -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build. NFC

This commit is contained in:
Fangrui Song 2021-06-20 11:35:01 -07:00
parent 521d373274
commit 50225112b5
1 changed files with 1 additions and 0 deletions

View File

@ -595,6 +595,7 @@ void Writer::finalizeAddresses() {
// If the verification above thought we needed thunks, we should have
// added some.
assert(addressesChanged);
(void)addressesChanged;
// Recalculate the layout for the whole image (and verify the ranges at
// the start of the next round).