diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-06-20 06:24:05 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-06-20 06:24:05 +0000 |
commit | 485212f67c971584d4994daf38c70b651682ad3b (patch) | |
tree | 4742269b31c1ac9ac06e13563e31d4969cceb580 /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 34d3376afc51813df319378610de6d2ec467f87a (diff) | |
download | llvm-485212f67c971584d4994daf38c70b651682ad3b.zip llvm-485212f67c971584d4994daf38c70b651682ad3b.tar.gz llvm-485212f67c971584d4994daf38c70b651682ad3b.tar.bz2 |
IndVarSimplify: Avoid UB from binding a reference to a null pointer
Calling operator* on a WeakVH whose Value is null hits undefined
behaviour, since we bind the value to a reference. Instead, go through
`operator Value*` so that we work with the pointer itself.
Found by ubsan.
llvm-svn: 240214
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions