Skip to content

Commit a126e7c

Browse files
authored
[SYCL][NFC] Remove dead code (#7884)
Minor fixes I noticed while browsing the code.
1 parent a14cdca commit a126e7c

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5067,7 +5067,6 @@ class OffloadingActionBuilder final {
50675067

50685068
// Return whether to use native bfloat16 library.
50695069
bool selectBfloatLibs(const ToolChain *TC, bool &useNative) {
5070-
const OptTable &Opts = C.getDriver().getOpts();
50715070
const char *TargetOpt = nullptr;
50725071
const char *DeviceOpt = nullptr;
50735072
bool needLibs = false;

clang/lib/Driver/ToolChains/SYCL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {
175175

176176
bool useIntegratedAs() const override { return true; }
177177
bool isPICDefault() const override { return false; }
178-
bool isPIEDefault(const llvm::opt::ArgList &Args) const override {\
178+
bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
179179
return false;
180180
}
181181
bool isPICDefaultForced() const override { return false; }

clang/lib/Frontend/CompilerInstance.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ bool CompilerInstance::createTarget() {
146146
return false;
147147

148148
// Inform the target of the language options.
149-
//
150149
// FIXME: We shouldn't need to do this, the target should be immutable once
151150
// created. This complexity should be lifted elsewhere.
152151
getTarget().adjust(getDiagnostics(), getLangOpts());

0 commit comments

Comments
 (0)