Skip to content

Commit

Permalink
[flang][driver] Disable Clang options in Flang
Browse files Browse the repository at this point in the history
Restore the desired setting that was reverted in

  https://reviews.llvm.org/D158289.

This is to be merged once Fortran tests in llvm-test-suite are updated
accordingly:

  https://reviews.llvm.org/D158308.

Differential Revision: https://reviews.llvm.org/D158307
  • Loading branch information
banach-space committed Aug 21, 2023
1 parent ab45b4f commit b16a758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6495,7 +6495,7 @@ Driver::getOptionVisibilityMask(bool UseDriverMode) const {
if (IsDXCMode())
return llvm::opt::Visibility(options::DXCOption);
if (IsFlangMode()) {
return llvm::opt::Visibility(options::ClangOption | options::FlangOption);
return llvm::opt::Visibility(options::FlangOption);
}
return llvm::opt::Visibility(options::ClangOption);
}
Expand Down

0 comments on commit b16a758

Please sign in to comment.