summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-01-03 21:23:35 +0000
committerReid Kleckner <rnk@google.com>2017-01-03 21:23:35 +0000
commitd2ad9dfdb998ac93fc2f2a56c9625eb6876e84f5 (patch)
treea777ab6c17b19cecdf594395a1dfd2fdb3b5a986 /llvm/lib/ExecutionEngine/Orc
parent6aff744e7cec0f603dc0555fc7c78bee952f308d (diff)
downloadbcm5719-llvm-d2ad9dfdb998ac93fc2f2a56c9625eb6876e84f5.tar.gz
bcm5719-llvm-d2ad9dfdb998ac93fc2f2a56c9625eb6876e84f5.zip
[Win64] Don't widen integer literal zero arguments to unprototyped function calls
The special case to widen the integer literal zero when passed to variadic function calls should only apply to variadic functions, not unprototyped functions. This is consistent with what MSVC does. In this test case, MSVC uses a 4-byte store to pass the 5th argument to 'kr' and an 8-byte store to pass the zero to 'v': void v(int, ...); void kr(); void f(void) { v(1, 2, 3, 4, 0); kr(1, 2, 3, 4, 0); } Aaron Ballman discovered this issue in https://reviews.llvm.org/D28166 llvm-svn: 290906
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud