[lld-link] Fix -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build. NFC
authorFangrui Song <i@maskray.me>
Sun, 20 Jun 2021 18:35:01 +0000 (11:35 -0700)
committerFangrui Song <i@maskray.me>
Sun, 20 Jun 2021 18:35:02 +0000 (11:35 -0700)
lld/COFF/Writer.cpp

index 422a85c..7a85ecb 100644 (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).