[PATCH] D100605: [lld-macho] Don't use arrays as template parameters

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 15 16:01:45 PDT 2021


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a project: lld-macho.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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 *)`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100605

Files:
  lld/MachO/Arch/ARM64.cpp
  lld/MachO/Arch/ARM64Common.h
  lld/MachO/Arch/ARM64_32.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100605.337930.patch
Type: text/x-patch
Size: 3982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210415/b10d0295/attachment.bin>


More information about the llvm-commits mailing list