Skip to content

Commit f886f7e

Browse files
Remove unused private variable.
1 parent 5eab94f commit f886f7e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ CudaToolChain::CudaToolChain(const Driver &D, const llvm::Triple &Triple,
599599
const ToolChain &HostTC, const ArgList &Args,
600600
const Action::OffloadKind OK)
601601
: ToolChain(D, Triple, Args), HostTC(HostTC),
602-
CudaInstallation(D, HostTC.getTriple(), Args), OK(OK) {
602+
CudaInstallation(D, HostTC.getTriple(), Args) {
603603
if (CudaInstallation.isValid()) {
604604
CudaInstallation.WarnIfUnsupportedVersion();
605605
getProgramPaths().push_back(std::string(CudaInstallation.getBinPath()));

clang/lib/Driver/ToolChains/Cuda.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,6 @@ class LLVM_LIBRARY_VISIBILITY CudaToolChain : public ToolChain {
188188
protected:
189189
Tool *buildAssembler() const override; // ptxas
190190
Tool *buildLinker() const override; // fatbinary (ok, not really a linker)
191-
192-
private:
193-
const Action::OffloadKind OK;
194191
};
195192

196193
} // end namespace toolchains

0 commit comments

Comments
 (0)