[clang] 240be65 - Fix warning about unused variable in HIPAMD.cpp

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 13 08:26:09 PST 2021


Author: Yaxun (Sam) Liu
Date: 2021-12-13T11:25:48-05:00
New Revision: 240be6541d49ee7c810cf60fb809409cbadd59c6

URL: https://github.com/llvm/llvm-project/commit/240be6541d49ee7c810cf60fb809409cbadd59c6
DIFF: https://github.com/llvm/llvm-project/commit/240be6541d49ee7c810cf60fb809409cbadd59c6.diff

LOG: Fix warning about unused variable in HIPAMD.cpp

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/HIPAMD.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/HIPAMD.cpp b/clang/lib/Driver/ToolChains/HIPAMD.cpp
index 9aa56b21c6bc4..c08f825e0cb9e 100644
--- a/clang/lib/Driver/ToolChains/HIPAMD.cpp
+++ b/clang/lib/Driver/ToolChains/HIPAMD.cpp
@@ -35,10 +35,6 @@ using namespace llvm::opt;
 #define NULL_FILE "/dev/null"
 #endif
 
-namespace {
-const unsigned HIPCodeObjectAlign = 4096;
-} // namespace
-
 static bool shouldSkipSanitizeOption(const ToolChain &TC,
                                      const llvm::opt::ArgList &DriverArgs,
                                      StringRef TargetID,


        


More information about the cfe-commits mailing list