[PrintSCC] Fix printing a basic-block without a name
authorEhud Katz <ehudkatz@gmail.com>
Fri, 29 May 2020 17:12:44 +0000 (20:12 +0300)
committerEhud Katz <ehudkatz@gmail.com>
Fri, 29 May 2020 17:14:19 +0000 (20:14 +0300)
commitdfc8244c24631169630399a640ab526acd678346
treef4caea5085eaf4d61dfdad8d3bdda009a4e25cba
parentdb653ff6b777f9133793c21c48a46912bc1a77df
[PrintSCC] Fix printing a basic-block without a name

Print a basic-block as an operand to handle the case where it has no
name.

Differential Revision: https://reviews.llvm.org/D80552
llvm/test/Other/print-cfg-sccs.ll [new file with mode: 0644]
llvm/tools/opt/PrintSCC.cpp