diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-17 03:15:29 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-08-17 03:15:29 +0000 |
commit | 01f574cdd5d6789827136c457d4491823b66115f (patch) | |
tree | 171eef9930c9601f40c57c762e97d1ef0594d446 /llvm/lib/Object/SymbolicFile.cpp | |
parent | b72c19f1a6c979724ee7ab42779c4e2f80098bf7 (diff) | |
download | bcm5719-llvm-01f574cdd5d6789827136c457d4491823b66115f.tar.gz bcm5719-llvm-01f574cdd5d6789827136c457d4491823b66115f.zip |
CodeGen: Avoid dereferencing end() in ScalarExprEmitter::EmitOverflowCheckedBinOp
Use BB.getNextNode(), which returns nullptr on end(), instead of
&*BB.getIterator(), which is UB on end().
CodeGenFunction::createBasicBlock expects nullptr in this case already.
llvm-svn: 278898
Diffstat (limited to 'llvm/lib/Object/SymbolicFile.cpp')
0 files changed, 0 insertions, 0 deletions