[llvm] r293467 - [LanRef] Fix typo in getelementptr example.

Alexey Bader via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 29 23:38:58 PST 2017


Author: bader
Date: Mon Jan 30 01:38:58 2017
New Revision: 293467

URL: http://llvm.org/viewvc/llvm-project?rev=293467&view=rev
Log:
[LanRef] Fix typo in getelementptr example.

Summary: Change B type from double to pointer to double.

Reviewers: delena, sanjoy

Reviewed By: sanjoy

Subscribers: sanjoy, llvm-commits

Differential Revision: https://reviews.llvm.org/D29009

Modified:
    llvm/trunk/docs/LangRef.rst

Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=293467&r1=293466&r2=293467&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Mon Jan 30 01:38:58 2017
@@ -7679,7 +7679,7 @@ makes sense:
 .. code-block:: c
 
     // Let's assume that we vectorize the following loop:
-    double *A, B; int *C;
+    double *A, *B; int *C;
     for (int i = 0; i < size; ++i) {
       A[i] = B[C[i]];
     }




More information about the llvm-commits mailing list