aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-06-20 06:24:05 +0000
committerJustin Bogner <mail@justinbogner.com>2015-06-20 06:24:05 +0000
commit485212f67c971584d4994daf38c70b651682ad3b (patch)
tree4742269b31c1ac9ac06e13563e31d4969cceb580 /clang/lib/Frontend/CompilerInstance.cpp
parent34d3376afc51813df319378610de6d2ec467f87a (diff)
downloadllvm-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