From 4a5dfeeeaafe3acd086c841527c530cdfc146403 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 17 Aug 2006 03:26:50 +0000 Subject: [PATCH] Fix validation problem git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29745 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/GetElementPtr.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GetElementPtr.html b/docs/GetElementPtr.html index 13df3f46f2b..dacc341bf1c 100644 --- a/docs/GetElementPtr.html +++ b/docs/GetElementPtr.html @@ -88,8 +88,8 @@
   X = &Foo[0].F;

Sometimes this question gets rephrased as:

-
Why is it okay to index through the first pointer, but - subsequent pointers won't be dereferenced?
+

Why is it okay to index through the first pointer, but + subsequent pointers won't be dereferenced?

The answer is simply because memory does not have to be accessed to perform the computation. The first operand to the GEP instruction must be a value of a pointer type. The value of the pointer is provided directly to