Skip to content

Commit 999286f

Browse files
committed
[Flang][Sanitizer] Support sanitizer flag for Flang Driver.
Flang Driver currently dosen't support option sanitizer flags such as '-fsanitize='. This patch currently supports enabling sanitizer flags for the flang driver apart from clang independently.
1 parent d921bf2 commit 999286f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ def fmemory_profile_use_EQ : Joined<["-"], "fmemory-profile-use=">,
23092309

23102310
// Begin sanitizer flags. These should all be core options exposed in all driver
23112311
// modes.
2312-
let Visibility = [ClangOption, CC1Option, CLOption] in {
2312+
let Visibility = [ClangOption, CC1Option, CLOption, FlangOption, FC1Option] in {
23132313

23142314
def fsanitize_EQ : CommaJoined<["-"], "fsanitize=">, Group<f_clang_Group>,
23152315
MetaVarName<"<check>">,

0 commit comments

Comments
 (0)