Skip to content

[SYCL][NFC] Remove dead code #7884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion clang/lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5067,7 +5067,6 @@ class OffloadingActionBuilder final {

// Return whether to use native bfloat16 library.
bool selectBfloatLibs(const ToolChain *TC, bool &useNative) {
const OptTable &Opts = C.getDriver().getOpts();
const char *TargetOpt = nullptr;
const char *DeviceOpt = nullptr;
bool needLibs = false;
Expand Down
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/SYCL.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class LLVM_LIBRARY_VISIBILITY SYCLToolChain : public ToolChain {

bool useIntegratedAs() const override { return true; }
bool isPICDefault() const override { return false; }
bool isPIEDefault(const llvm::opt::ArgList &Args) const override {\
bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
return false;
}
bool isPICDefaultForced() const override { return false; }
Expand Down
1 change: 0 additions & 1 deletion clang/lib/Frontend/CompilerInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ bool CompilerInstance::createTarget() {
return false;

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