you can't take the address of the entry block of a function.
authorChris Lattner <sabre@nondot.org>
Tue, 27 Oct 2009 21:49:40 +0000 (21:49 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 27 Oct 2009 21:49:40 +0000 (21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85321 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 6025b41ad70030f0d695411057562676f43c5612..3d4783a698b75b734173d5a9f432d2f06df75b53 100644 (file)
@@ -2179,8 +2179,8 @@ has undefined behavior.</p>
 <p><b><tt>blockaddress(@function, %block)</tt></b></p>
 
 <p>The '<tt>blockaddress</tt>' constant computes the address of the specified
-   basic block in the specified function, and always has an i8* type.</p>
-   
+   basic block in the specified function, and always has an i8* type.  Taking
+   the address of the entry block is illegal.</p>
      
 <p>This value only has defined behavior when used as an operand to the
    '<a href="#i_indbr"><tt>indbr</tt></a>' instruction or for comparisons