Skip to content

Commit 4da832b

Browse files
committed
Don't need TBAA
1 parent 93eba6d commit 4da832b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5959,7 +5959,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
59595959
// We turn strict aliasing off by default if we're Windows MSVC since MSVC
59605960
// doesn't do any TBAA.
59615961
if (!Args.hasFlag(options::OPT_fstrict_aliasing, StrictAliasingAliasOption,
5962-
options::OPT_fno_strict_aliasing, !IsWindowsMSVC))
5962+
options::OPT_fno_strict_aliasing,
5963+
!IsWindowsMSVC && !IsUEFI))
59635964
CmdArgs.push_back("-relaxed-aliasing");
59645965
if (Args.hasFlag(options::OPT_fno_pointer_tbaa, options::OPT_fpointer_tbaa,
59655966
false))

0 commit comments

Comments
 (0)