[clang] 0eef650 - [SPIR-V] Remove unused variable

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 11 05:46:30 PST 2022


Author: Anastasia Stulova
Date: 2022-01-11T13:45:59Z
New Revision: 0eef65028e8a2f3417fb19e2eb5b0cbf50600c7e

URL: https://github.com/llvm/llvm-project/commit/0eef65028e8a2f3417fb19e2eb5b0cbf50600c7e
DIFF: https://github.com/llvm/llvm-project/commit/0eef65028e8a2f3417fb19e2eb5b0cbf50600c7e.diff

LOG: [SPIR-V] Remove unused variable

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/SPIRV.cpp b/clang/lib/Driver/ToolChains/SPIRV.cpp
index ce6ce5e8998e..27de69550853 100644
--- a/clang/lib/Driver/ToolChains/SPIRV.cpp
+++ b/clang/lib/Driver/ToolChains/SPIRV.cpp
@@ -80,7 +80,6 @@ void SPIRV::Linker::ConstructJob(Compilation &C, const JobAction &JA,
                                  const ArgList &Args,
                                  const char *LinkingOutput) const {
   const ToolChain &ToolChain = getToolChain();
-  const Driver &D = ToolChain.getDriver();
   std::string Linker = ToolChain.GetProgramPath(getShortName());
   ArgStringList CmdArgs;
   AddLinkerInputs(getToolChain(), Inputs, Args, CmdArgs, JA);


        


More information about the cfe-commits mailing list