From 65bdf0ae4a87e6992c24f06e2612909952468710 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 13 Sep 2017 18:49:22 +0000 Subject: [PATCH] Fix a misleading phrase in the LangRef Reviewers: hfinkel, dberlin Subscribers: mcrosier, llvm-commits Differential Revision: https://reviews.llvm.org/D37432 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313170 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 7496863029f..9fd7965cb51 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -2033,8 +2033,11 @@ to the following rules: A pointer value is *based* on another pointer value according to the following rules: -- A pointer value formed from a ``getelementptr`` operation is *based* - on the second value operand of the ``getelementptr``. +- A pointer value formed from a scalar ``getelementptr`` operation is *based* on + the pointer-typed operand of the ``getelementptr``. +- The pointer in lane *l* of the result of a vector ``getelementptr`` operation + is *based* on the pointer in lane *l* of the vector-of-pointers-typed operand + of the ``getelementptr``. - The result value of a ``bitcast`` is *based* on the operand of the ``bitcast``. - A pointer value formed by an ``inttoptr`` is *based* on all pointer -- 2.40.0