summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/SymbolicFile.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-17 03:15:29 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-17 03:15:29 +0000
commit01f574cdd5d6789827136c457d4491823b66115f (patch)
tree171eef9930c9601f40c57c762e97d1ef0594d446 /llvm/lib/Object/SymbolicFile.cpp
parentb72c19f1a6c979724ee7ab42779c4e2f80098bf7 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud