title: invalid getelementptr indices
body: <p>I'm getting "invalid getelementptr indices" on the last line of this llvm-IR code:</p>
  
  <pre><code>%alc = alloca %mytype*
  store %mytype* %obj, %mytype** %alc
  %ldc = load %mytype** %alc
  %gcs = getelementptr inbounds %mytype* %ldc, i32 0, i32 1
  </code></pre>
  
  <p>where mytype is defined as follows:</p>
  
  <pre><code>%mytype = type {i32, %tp1**, %tp1}
  </code></pre>
  
  <p>I have another similar type that indexing over it doesn't cause the above error and is defined as:</p>
  
  <pre><code>%mytype2 = type {i32, i16*, %tp1}
  </code></pre>
  
  <p>Any help to resolve this problem would be appreciated. </p>