diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp index 422a85c07638..7a85ecbd456a 100644 --- a/lld/COFF/Writer.cpp +++ b/lld/COFF/Writer.cpp @@ -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).