diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-23 21:01:00 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-23 21:03:22 +0100 |
commit | 899faa50f206073cdd8eeaaa130ffa15f850e656 (patch) | |
tree | b94096d8f6dc6578bc2fd1784182f5652d526613 /clang/lib/Basic/Module.cpp | |
parent | de127d83d81228de36c487a6da28502b458e9924 (diff) | |
download | llvm-899faa50f206073cdd8eeaaa130ffa15f850e656.zip llvm-899faa50f206073cdd8eeaaa130ffa15f850e656.tar.gz llvm-899faa50f206073cdd8eeaaa130ffa15f850e656.tar.bz2 |
[InstCombine] Check inbounds in load/store of gep null transform (PR48577)
If the GEP isn't inbounds, then accessing a GEP of null location
is generally not UB.
While this is a minimal fix, the GEP of null handling should
probably be its own fold.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions