]> granicus.if.org Git - clang/commit
Teach ARM va_arg to ignore empty structs.
authorTim Northover <tnorthover@apple.com>
Fri, 21 Jun 2013 23:05:33 +0000 (23:05 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 21 Jun 2013 23:05:33 +0000 (23:05 +0000)
commit373ac0ab90a2d61fad7dd991712b8cec30c14604
treefd79619d8ffa38edf52fd0a7a91c220e09ae812f
parentf5c3a2521972e9d70d0ec5450cc65472d63ec89f
Teach ARM va_arg to ignore empty structs.

Empty structs are ignored for parameter passing purposes, but va_arg was
incrementing the pointer anyway which could lead to va_list getting out of
sync.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGenCXX/arm-vaarg.cpp [new file with mode: 0644]