We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e72eb0d commit b63770bCopy full SHA for b63770b
lib/SIL/IR/SILPrinter.cpp
@@ -950,6 +950,16 @@ class SILPrinter : public SILInstructionVisitor<SILPrinter> {
950
if (br->getDestBB()->getDebugName().hasValue()) {
951
*this << ", dest->" << br->getDestBB()->getDebugName().getValue();
952
}
953
+ } else if (auto termInst = dyn_cast<TermInst>(inst)) {
954
+ // Otherwise, we just print the successors in order without pretty printing
955
+ for (unsigned i = 0, numSuccessors = termInst->getSuccessors().size();
956
+ i != numSuccessors; ++i) {
957
+ auto &successor = termInst->getSuccessors()[i];
958
+ if (successor.getBB()->getDebugName().hasValue()) {
959
+ *this << ", #" << i
960
+ << "->" << successor.getBB()->getDebugName().getValue();
961
+ }
962
963
964
965
0 commit comments