[lld] 47fb8ae - lldCOFF: Fix warnings for D110450 [-Wunused-private-field]

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 8 20:11:33 PST 2023


Author: NAKAMURA Takumi
Date: 2023-01-09T13:05:34+09:00
New Revision: 47fb8ae2f9a4075de05433ef24f459b6befd1730

URL: https://github.com/llvm/llvm-project/commit/47fb8ae2f9a4075de05433ef24f459b6befd1730
DIFF: https://github.com/llvm/llvm-project/commit/47fb8ae2f9a4075de05433ef24f459b6befd1730.diff

LOG: lldCOFF: Fix warnings for D110450 [-Wunused-private-field]

Added: 
    

Modified: 
    lld/COFF/Chunks.cpp

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp
index 880bfc34727e..ad5dbba3f137 100644
--- a/lld/COFF/Chunks.cpp
+++ b/lld/COFF/Chunks.cpp
@@ -804,6 +804,7 @@ const uint8_t armThunk[] = {
 
 size_t RangeExtensionThunkARM::getSize() const {
   assert(ctx.config.machine == ARMNT);
+  (void)&ctx;
   return sizeof(armThunk);
 }
 
@@ -824,6 +825,7 @@ const uint8_t arm64Thunk[] = {
 
 size_t RangeExtensionThunkARM64::getSize() const {
   assert(ctx.config.machine == ARM64);
+  (void)&ctx;
   return sizeof(arm64Thunk);
 }
 


        


More information about the llvm-commits mailing list