[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 16 14:03:14 PDT 2018

mstorsjo added a comment.

In https://reviews.llvm.org/D44582#1040578, @efriedma wrote:

> Can we just fix the bug in the backend, rather than trying to hack around it in clang?

That'd obviously be ideal - but I don't know how easy that'd be (not familiar enough with that aspect of LLVM); if it's easily doable there, why is the handling of this detail of the calling convention done in clang for normal functions to begin with? (The calling convention requires allocating stack space in the caller for the argument and return value, which isn't done in the IR emitted by clang originally when using intrinsics.)

  rC Clang


More information about the cfe-commits mailing list