[llvm] [InstSimplify] Fold `getelementptr inbounds null, idx -> null` (PR #130742)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu May 1 02:03:00 PDT 2025


dtcxzyw wrote:

> We've found that this also breaks SDL2, specifically somewhere in [SDL_render_gles2.c](https://github.com/libsdl-org/SDL/blob/release-2.32.x/src/render/opengles2/SDL_render_gles2.c). Unfortunately I haven't been able to narrow down the failure yet, I didn't see any obvious use of calculating offsets from nullptr or anything like that. The fix in #137851 didn't work for it.

FYI the fix has been upstreamed: https://github.com/libsdl-org/SDL/commit/14deef997cf461b40cfd3e340e98622421035022


https://github.com/llvm/llvm-project/pull/130742


More information about the llvm-commits mailing list