[clang] 08cb640 - [NFC] Remove an unused decl to avoid warning

Kiran Chandramohan via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 9 08:47:21 PST 2023


Author: Kiran Chandramohan
Date: 2023-12-09T16:27:42Z
New Revision: 08cb64034f17d50a660ec78ce8ea81a025b0ba71

URL: https://github.com/llvm/llvm-project/commit/08cb64034f17d50a660ec78ce8ea81a025b0ba71
DIFF: https://github.com/llvm/llvm-project/commit/08cb64034f17d50a660ec78ce8ea81a025b0ba71.diff

LOG: [NFC] Remove an unused decl to avoid warning

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/WebAssembly.cpp b/clang/lib/Driver/ToolChains/WebAssembly.cpp
index f04018179a5da..f131b6cf3baff 100644
--- a/clang/lib/Driver/ToolChains/WebAssembly.cpp
+++ b/clang/lib/Driver/ToolChains/WebAssembly.cpp
@@ -143,7 +143,7 @@ void wasm::Linker::ConstructJob(Compilation &C, const JobAction &JA,
 
   // When optimizing, if wasm-opt is available, run it.
   std::string WasmOptPath;
-  if (Arg *A = Args.getLastArg(options::OPT_O_Group)) {
+  if (Args.getLastArg(options::OPT_O_Group)) {
     WasmOptPath = ToolChain.GetProgramPath("wasm-opt");
     if (WasmOptPath == "wasm-opt") {
       WasmOptPath = {};


        


More information about the cfe-commits mailing list