[OpaquePtr] Remove uses of CreateGEP() without element type

Remove uses of to-be-deprecated API. In cases where the correct
element type was not immediately obvious to me, fall back to
explicit getPointerElementType().

GitOrigin-RevId: 2c68ecccc9ee1fb37eca318a9b3572813a137cd5
2 files changed