[llvm] [InstSimplify] Fold `getelementptr inbounds null, idx -> null` (PR #130742)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 30 10:12:10 PDT 2025
dtcxzyw wrote:
> If this is causing a lot of issues can we possibly revert it while the fixes make their way through review, and then re-merge it with the fixes?
Sorry, we cannot add a workaround for the SDL2 case. The base pointer is not a constant null, so that clang doesn't know if it is safe to set `inbounds` flag. The best solution is to replace the pointer addition with an integer addition.
https://github.com/llvm/llvm-project/pull/130742
More information about the llvm-commits
mailing list