summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MemorySSAUpdater.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-09-10 19:59:18 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-09-10 19:59:18 +0000
commita3dc9484e3588f55907e87f0d36e605b9989a4d5 (patch)
tree76d334011928a0fc2e1dab5526926ed7398323ca /llvm/lib/Analysis/MemorySSAUpdater.cpp
parent4d2dff01482ffb7708db699fc4ab294be7eaf715 (diff)
downloadbcm5719-llvm-a3dc9484e3588f55907e87f0d36e605b9989a4d5.tar.gz
bcm5719-llvm-a3dc9484e3588f55907e87f0d36e605b9989a4d5.zip
[clang-tidy] ExprMutationAnalyzer: construct from references. Fixes PR38888
Summary: I have hit this the rough way, while trying to use this in D51870. There is no particular point in storing the pointers, and moreover the pointers are assumed to be non-null, and that assumption is not enforced. If they are null, it won't be able to do anything good with them anyway. Initially i thought about simply adding asserts() that they are not null, but taking/storing references looks like even cleaner solution? Fixes [[ https://bugs.llvm.org/show_bug.cgi?id=38888 | PR38888 ]] Reviewers: JonasToth, shuaiwang, alexfh, george.karpenkov Reviewed By: shuaiwang Subscribers: xazax.hun, a.sidorin, Szelethus, cfe-commits Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D51884 llvm-svn: 341854
Diffstat (limited to 'llvm/lib/Analysis/MemorySSAUpdater.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud