diff options
author | Nikita Popov <npopov@redhat.com> | 2024-09-13 09:45:14 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-09-13 10:04:39 +0200 |
commit | 940f89255e4a3982d94dad57837e8e658092af78 (patch) | |
tree | 03b5d4478f49db596d41e434e85d6aefdf6d7f11 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c0e308ba3d8ac252b8118d94a17b1351ca92b813 (diff) | |
download | llvm-940f89255e4a3982d94dad57837e8e658092af78.zip llvm-940f89255e4a3982d94dad57837e8e658092af78.tar.gz llvm-940f89255e4a3982d94dad57837e8e658092af78.tar.bz2 |
[InstCombine] Do not modify GEP in place
This was modifying the GEP in place, with code to adjust the
inbounds flag. This was correct at the time, but now fails to
account for other GEP flags like nuw, leading to miscompilations.
Remove the special case, and always create a new GEP instruction.
Logic for preserving nuw in the cases where it is valid will be
added in a followup patch.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions