[cfe-commits] [patch] Falling off main() returns zero

John McCall rjmccall at apple.com
Mon Jul 27 12:07:25 PDT 2009


This patch implements the C/C++ requirement that falling off main 
returns zero.  The easiest way to do this is to simply initialize the 
return-value alloca to zero at the start of the function.

This is a pretty obvious patch, but this is my first foray into codegen, 
so maybe I'm doing this horridly wrong.

John.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090727/4c64f4ff/attachment.txt>


More information about the cfe-commits mailing list