void type is also a valid function return type.
authorDevang Patel <dpatel@apple.com>
Mon, 24 Mar 2008 20:52:42 +0000 (20:52 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 24 Mar 2008 20:52:42 +0000 (20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48740 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index e44edf421fd12259eb33a6948beb3c399791691b..08cdccf81021b00f418d9f50254704bd4540d134 100644 (file)
@@ -1226,8 +1226,8 @@ type "{ i32, [0 x float]}", for example.</p>
 <h5>Overview:</h5>
 <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 
+return type of a function type is a scalar type or a void type or a struct type. 
+If the return type is a struct type then all struct elements must be of first 
 class types. Function types are usually used to build virtual function tables
 (which are structures of pointers to functions), for indirect function
 calls, and when defining a function.</p>