diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-04-21 21:01:13 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-04-21 21:01:13 +0000 |
commit | 23341a84cacfa57722a6d0807846f164317f9d8d (patch) | |
tree | a17a3b115192cecd2616b2d9b8495eab6f2beaaa /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 95590f4b7bba50a05807de14aae5eb9678937dc5 (diff) | |
download | llvm-23341a84cacfa57722a6d0807846f164317f9d8d.zip llvm-23341a84cacfa57722a6d0807846f164317f9d8d.tar.gz llvm-23341a84cacfa57722a6d0807846f164317f9d8d.tar.bz2 |
[MachineBasicBlock] Make the pass argument truly mandatory when
splitting edges.
MachineBasicBlock::SplitCriticalEdges will crash if a nullptr would have
been passed for the Pass argument. Do not allow that by turning this
argument into a reference.
The alternative would have been to make the Pass a truly optional
argument, but although this is easy to do, I was afraid users using it
like this would not be aware the livness information, dominator tree and
such would silently be broken.
llvm-svn: 267052
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions