[PATCH] Correctly align arguments after a byval struct is passed on the stack

Renato Golin renato.golin at linaro.org
Tue Mar 4 10:30:44 PST 2014

Comment at: lib/Target/ARM/ARMISelLowering.cpp:2867
@@ +2866,3 @@
+      // We cannot allocate a zero-byte object for the first variadic argument,
+      // so just make up a size.
+      ArgSize = 4;
This comment seem to imply anything would do. I'm guessing this has to be at least aligned, but really, 4 is the only reasonable answer here.


More information about the llvm-commits mailing list