[opaque pointer type] Avoid using PointerType::getElementType when parsing IR