[llvm] 42476de - [ADT] Fix an unused variable warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 15:02:54 PST 2022


Author: Kazu Hirata
Date: 2022-12-20T15:02:48-08:00
New Revision: 42476dea671af0e5328f22cc2890dd756d30fc61

URL: https://github.com/llvm/llvm-project/commit/42476dea671af0e5328f22cc2890dd756d30fc61
DIFF: https://github.com/llvm/llvm-project/commit/42476dea671af0e5328f22cc2890dd756d30fc61.diff

LOG: [ADT] Fix an unused variable warning

This patch fixes:

  llvm/include/llvm/ADT/GenericUniformityImpl.h:752:8: error: unused
  variable 'printBlockSet' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    llvm/include/llvm/ADT/GenericUniformityImpl.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/GenericUniformityImpl.h b/llvm/include/llvm/ADT/GenericUniformityImpl.h
index 2cbaabe272e34..fd446fed086ea 100644
--- a/llvm/include/llvm/ADT/GenericUniformityImpl.h
+++ b/llvm/include/llvm/ADT/GenericUniformityImpl.h
@@ -765,6 +765,7 @@ auto llvm::GenericSyncDependenceAnalysis<ContextT>::getJoinBlocks(
              << "):\n  JoinDivBlocks: " << printBlockSet(DivDesc->JoinDivBlocks)
              << "  CycleDivBlocks: " << printBlockSet(DivDesc->CycleDivBlocks)
              << "\n");
+  (void)printBlockSet;
 
   auto ItInserted =
       CachedControlDivDescs.try_emplace(DivTermBlock, std::move(DivDesc));


        


More information about the llvm-commits mailing list