aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-16 21:46:03 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-08-16 21:46:03 +0000
commit41cf73ce16c016a02d875364a56e127b4cdf46e8 (patch)
treeb5266305dfabc0bd54211694d69a81b3e06f26a5 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent904cd39b0562cec4a53adc02307af64189306e08 (diff)
downloadllvm-41cf73ce16c016a02d875364a56e127b4cdf46e8.zip
llvm-41cf73ce16c016a02d875364a56e127b4cdf46e8.tar.gz
llvm-41cf73ce16c016a02d875364a56e127b4cdf46e8.tar.bz2
CodeGen: Don't dereference end() in MachineBasicBlock::CorrectExtraCFGEdges
The current MachineBasicBlock might be the last block, so FallThru may be past the end(). Use getNextNode(), which will convert to nullptr, rather than &*++, which is invalid if we reach the end(). llvm-svn: 278858
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions