Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Remove va_start's body, as it is not an intrinsic function. The old b…
Browse files Browse the repository at this point in the history
…ody was incorrect, and leaving it intact results in wrong-code when it is inlined
  • Loading branch information
yebblies committed Jan 25, 2015
1 parent d371460 commit 6838ea1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/stdc/stdarg.d
Expand Up @@ -96,10 +96,7 @@ else version (Windows) // Win64
* Initialize ap.
* parmn should be the last named parameter.
*/
void va_start(T)(out va_list ap, ref T parmn)
{
ap = cast(va_list)(cast(void*)&parmn + ((size_t.sizeof + size_t.sizeof - 1) & ~(size_t.sizeof - 1)));
}
void va_start(T)(out va_list ap, ref T parmn); // Compiler intrinsic

/************
* Retrieve and return the next value that is type T.
Expand Down

0 comments on commit 6838ea1

Please sign in to comment.