Skip to content

Commit e0b4c7f

Browse files
authored
[NFC] Remove unused var (#14565)
Causing build failure with `-Werror`.
1 parent 2e19e87 commit e0b4c7f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,6 @@ static void addBackendOptions(const ArgList &Args,
853853
static Expected<StringRef> runAOTCompileIntelCPU(StringRef InputFile,
854854
const ArgList &Args) {
855855
const llvm::Triple Triple(Args.getLastArgValue(OPT_triple_EQ));
856-
StringRef Arch(Args.getLastArgValue(OPT_arch_EQ));
857856
SmallVector<StringRef, 8> CmdArgs;
858857
Expected<std::string> OpenCLAOTPath =
859858
findProgram("opencl-aot", {getMainExecutable("opencl-aot")});

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,6 @@ struct AddressSanitizer {
881881
FunctionCallee AsanSetShadowStaticLocalFunc;
882882
FunctionCallee AsanSetShadowDynamicLocalFunc;
883883
Constant *AsanShadowGlobal;
884-
Constant *AsanShadowDevicePrivate;
885884
StringMap<GlobalVariable *> GlobalStringMap;
886885
Constant *AsanLaunchInfo;
887886

0 commit comments

Comments
 (0)