IgWod-IMG wrote: In the hindsight we should probably update `SampledImageType::verifyInvariants` to check for illegal sampled images. I can do it as a part of this PR or create a separate patch. https://github.com/llvm/llvm-project/pull/159376