This is an archive of the discontinued LLVM Phabricator instance.

[Clang] perform "maximum TLS alignment" check for template instantiation
ClosedPublic

Authored by ychen on Oct 26 2022, 12:53 AM.

Diff Detail

Event Timeline

ychen created this revision.Oct 26 2022, 12:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 12:53 AM
ychen requested review of this revision.Oct 26 2022, 12:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2022, 12:53 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ychen edited the summary of this revision. (Show Details)Oct 26 2022, 12:53 AM
mizvekov accepted this revision.Oct 26 2022, 5:15 AM
mizvekov added inline comments.
clang/lib/Sema/SemaDecl.cpp
14038–14039

Is this needed? It seems getMaxTLSAlign() will return 0 in that case anyway.

This revision is now accepted and ready to land.Oct 26 2022, 5:15 AM
ychen updated this revision to Diff 470858.Oct 26 2022, 10:29 AM
  • remove unnecessary check
ychen added inline comments.Oct 26 2022, 10:29 AM
clang/lib/Sema/SemaDecl.cpp
14038–14039

It is checked in the other place where err_tls_var_aligned_over_maximum is used so I put it here. I'll remove the check here and there.

This revision was landed with ongoing or failed builds.Oct 30 2022, 10:40 PM
This revision was automatically updated to reflect the committed changes.