aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/OptimizePHIs.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-16 23:57:56 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-16 23:57:56 +0000
commit0a12729f99aacee25aecb5a166129188240c8853 (patch)
tree8f7202031990a26fe4fa7963bb2aac0c371264dc /llvm/lib/CodeGen/OptimizePHIs.cpp
parent39eec466a220cfa4152bbcbc956f9a4fd3a84699 (diff)
downloadllvm-0a12729f99aacee25aecb5a166129188240c8853.zip
llvm-0a12729f99aacee25aecb5a166129188240c8853.tar.gz
llvm-0a12729f99aacee25aecb5a166129188240c8853.tar.bz2
SimplifyCFG: Avoid dereferencing end()
When comparing a User* to a BasicBlock::iterator in passingValueIsAlwaysUndefined, don't dereference the iterator in case it is end(). llvm-svn: 278872
Diffstat (limited to 'llvm/lib/CodeGen/OptimizePHIs.cpp')
0 files changed, 0 insertions, 0 deletions