[PATCH] D78785: Fix x86/x86_64 calling convention for _ExtInt

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 23 20:39:53 PDT 2020


erichkeane created this revision.
erichkeane added a reviewer: craig.topper.

After speaking with Craig Topper about some recent defects, he pointed
out that _ExtInts should be passed indirectly if larger than the largest
int register, and like ints when smaller than that.  This patch
implements that.

Note that this changed the way vaargs worked quite a bit, but they still
work.


Repository:
  rC Clang

https://reviews.llvm.org/D78785

Files:
  clang/lib/CodeGen/TargetInfo.cpp
  clang/test/CodeGen/ext-int-sanitizer.cpp
  clang/test/CodeGen/ext-int.c
  clang/test/CodeGenCXX/ext-int.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78785.259793.patch
Type: text/x-patch
Size: 17812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200424/f8c08ced/attachment.bin>


More information about the cfe-commits mailing list