aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-24 20:52:42 +0000
committerDevang Patel <dpatel@apple.com>2008-03-24 20:52:42 +0000
commitd5404c00de3024fd09456a07b9f95cd041f5974e (patch)
treeebf81a6b305ad11dcf2eec5ab62dded6c612a8d5 /docs
parent0add94be6c5c602747805bc0cbaf8222d1e48f7b (diff)
downloadexternal_llvm-d5404c00de3024fd09456a07b9f95cd041f5974e.zip
external_llvm-d5404c00de3024fd09456a07b9f95cd041f5974e.tar.gz
external_llvm-d5404c00de3024fd09456a07b9f95cd041f5974e.tar.bz2
void type is also a valid function return type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index e44edf4..08cdccf 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -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>