http://llvm.org/bugs/show_bug.cgi?id=9702
Eli Friedman <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #12 from Eli Friedman <[email protected]> 2012-12-21 18:40:56 CST --- > static DWORD > xCall(LPVOID retptr, int method, TMProxyImpl *tpinfo /*, args */) > { > DWORD *args = ((DWORD*)&tpinfo)+1, *xargs; The subsequent use of "args" is undefined behavior. tpinfo is a single pointer-sized variable; we make no guarantees about the layout of other variables/arguments/etc. relative to it. The only supported way to do varargs in C is to use stdarg.h. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
