[llvm-commits] [llvm] r48734 - /llvm/trunk/docs/LangRef.html

Chris Lattner clattner at apple.com
Mon Mar 24 13:38:42 PDT 2008


On Mar 24, 2008, at 11:10 AM, Devang Patel wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=48734&view=rev
> Log:
> Fix typo. Clarify underlying message.

> <p>The function type can be thought of as a function signature.  It
> consists of a return type and a list of formal parameter types. The
> return type of a function type is a scalar type or a struct type. If  
> the
> +return type is a struct type then all struct elements must be of  
> first
> +class types.

While this would certainly be an interesting thing to do, functions  
can still currently return void as well (which is neither struct or  
scalar type).  We could completely eliminate void by switching to  
having calls return {} instead, but until then, the langref should  
reflect current practice.

-Chris



More information about the llvm-commits mailing list