This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Don't use arrays as template parameters
ClosedPublic

Authored by int3 on Apr 15 2021, 4:01 PM.

Details

Reviewers
gkm
Group Reviewers
Restricted Project
Commits
rG4938b090cf0b: [lld-macho] Don't use arrays as template parameters
Summary

MSVC from VSCode 2017 appears unhappy with it (causes an
internal compiler error.)

This also means that we need to avoid doing sizeof(stubCode) as
sizeof(int[N]) on function array parameters decays into sizeof(int *).

Diff Detail

Event Timeline

int3 created this revision.Apr 15 2021, 4:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2021, 4:01 PM
int3 requested review of this revision.Apr 15 2021, 4:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2021, 4:01 PM
gkm accepted this revision.Apr 15 2021, 4:13 PM
gkm added a subscriber: gkm.

⛸ 🍨 🍦 🍧

This revision is now accepted and ready to land.Apr 15 2021, 4:13 PM
This revision was landed with ongoing or failed builds.Apr 15 2021, 6:17 PM
This revision was automatically updated to reflect the committed changes.