NULL, unique pointers from malloc(0), and freed pointers are legal values for
authorTorok Edwin <edwintorok@gmail.com>
Mon, 24 Nov 2008 08:02:24 +0000 (08:02 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Mon, 24 Nov 2008 08:02:24 +0000 (08:02 +0000)
noalias attribute parameters/return values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59955 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index b469022b7620384f2cfd2294d860359f82628726..7c770cb43762696bc248fc9db2ddfa7397874a4d 100644 (file)
@@ -894,7 +894,9 @@ declare signext i8 @returns_signed_char()
     parameter.  The caller is responsible for ensuring that this is the
     case. On a function return value, <tt>noalias</tt> additionally indicates
     that the pointer does not alias any other pointers visible to the
-    caller.</dd>
+    caller. Note that this applies only to pointers that can be used to actually
+    load/store a value: NULL, unique pointers from malloc(0), and freed pointers
+    are considered to not alias anything.</dd>
 
     <dt><tt>nest</tt></dt>
     <dd>This indicates that the pointer parameter can be excised using the