From: Chris Lattner Date: Tue, 27 Oct 2009 21:49:40 +0000 (+0000) Subject: you can't take the address of the entry block of a function. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2dfdf2ab3c180631a98ba6ae566ddba7ac4e533b;p=oota-llvm.git you can't take the address of the entry block of a function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85321 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index 6025b41ad70..3d4783a698b 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2179,8 +2179,8 @@ has undefined behavior.

blockaddress(@function, %block)

The 'blockaddress' constant computes the address of the specified - basic block in the specified function, and always has an i8* type.

- + basic block in the specified function, and always has an i8* type. Taking + the address of the entry block is illegal.

This value only has defined behavior when used as an operand to the 'indbr' instruction or for comparisons