[PATCH] D116020: [clang][#52782] Bail on incomplete parameter type in stdcall name mangling

David Majnemer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 3 15:10:49 PST 2022


majnemer added a comment.

I wonder if we should have different behavior for MSVC targets.

If I do:

  class Incomplete;
  extern "C" int __stdcall Fn(int, Incomplete, long long);
  auto fnptr = &Fn;

MSVC generates:

  EXTRN   _Fn at 12:PROC

It appears that they skip over incomplete types.

Should the behavior for incomplete types depend on the target?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116020/new/

https://reviews.llvm.org/D116020



More information about the cfe-commits mailing list