diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-17 01:16:17 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-17 01:16:17 +0000 |
commit | 3bcaa812042ba8ffb598c96fae99b07528a0caa5 (patch) | |
tree | bb22f0b6369870575415c29fef498c689853970a /llvm/lib/Object/SymbolicFile.cpp | |
parent | 194b6a3b1b1a99cc3c12c466a04320f271ebd8aa (diff) | |
download | llvm-3bcaa812042ba8ffb598c96fae99b07528a0caa5.zip llvm-3bcaa812042ba8ffb598c96fae99b07528a0caa5.tar.gz llvm-3bcaa812042ba8ffb598c96fae99b07528a0caa5.tar.bz2 |
Scalar: Avoid dereferencing end() in InductiveRangeCheckElimination
BasicBlock::Create isn't designed to take iterators (which might be
end()), but pointers (which might be nullptr). Fix the UB that was
converting end() to a BasicBlock* by calling BasicBlock::getNextNode()
in the first place.
llvm-svn: 278883
Diffstat (limited to 'llvm/lib/Object/SymbolicFile.cpp')
0 files changed, 0 insertions, 0 deletions