aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-12-23 21:18:48 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-12-23 21:41:53 +0100
commiteb79fd3c928dbbb97f7937963361c1dad2bf8222 (patch)
tree3fe5415e95c6dd8efb53f2ce2613ee786b3cc171 /clang/lib/Basic/Module.cpp
parent87087a02ae49a907e0ec9e6dfe62c9b9ca232936 (diff)
downloadllvm-eb79fd3c928dbbb97f7937963361c1dad2bf8222.zip
llvm-eb79fd3c928dbbb97f7937963361c1dad2bf8222.tar.gz
llvm-eb79fd3c928dbbb97f7937963361c1dad2bf8222.tar.bz2
[InstCombine] Fold gep inbounds of null to null
Effectively, this is what we were previously already doing when the GEP was used in conjunction with a load or store, but this fold can also be applied more generally: > The only in bounds address for a null pointer in the default > address-space is the null pointer itself.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions