[PATCH] D101640: [clang][patch] Add support for option -fextend-arguments={32,64}: widen integer arguments to int64 in unprototyped function calls

Melanie Blower via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 12 13:33:47 PDT 2021


mibintc added inline comments.


================
Comment at: clang/test/CodeGen/extend-arg-64.c:19
+
+int vararg(int, ...);
+
----------------
aaron.ballman wrote:
> Can you also add a test for K&R C functions? e.g., `int knr();` `sum = knr(sum, u32, s32, u16, s16, u8, s8);`
> 
> Also, can you show what happens when passing a `long long` and an `_ExtInt`
Yes I can add those tests.  BTW the _ExtInt types are not "promotable" therefore the UsualUnaryConversions have no effect. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101640



More information about the cfe-commits mailing list