[llvm-commits] [llvm] r66458 - /llvm/trunk/docs/LangRef.html

Chris Lattner sabre at nondot.org
Mon Mar 9 13:55:18 PDT 2009


Author: lattner
Date: Mon Mar  9 15:55:18 2009
New Revision: 66458

URL: http://llvm.org/viewvc/llvm-project?rev=66458&view=rev
Log:
Clarify wording, patch by Stefanus Du Toit!


Modified:
    llvm/trunk/docs/LangRef.html

Modified: llvm/trunk/docs/LangRef.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=66458&r1=66457&r2=66458&view=diff

==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Mon Mar  9 15:55:18 2009
@@ -3637,11 +3637,13 @@
   }
 </pre>
 
-<p>Note that it is undefined to access an array out of bounds: array and 
-pointer indexes must always be within the defined bounds of the array type.
-The one exception for this rule is zero length arrays.  These arrays are
-defined to be accessible as variable length arrays, which requires access
-beyond the zero'th element.</p>
+<p>Note that it is undefined to access an array out of bounds: array
+and pointer indexes must always be within the defined bounds of the
+array type when accessed with an instruction that dereferences the
+pointer (e.g. a load or store instruction).  The one exception for
+this rule is zero length arrays.  These arrays are defined to be
+accessible as variable length arrays, which requires access beyond the
+zero'th element.</p>
 
 <p>The getelementptr instruction is often confusing.  For some more insight
 into how it works, see <a href="GetElementPtr.html">the getelementptr 





More information about the llvm-commits mailing list