Skip to content

Commit

Permalink
Proper output for no EdgeLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
mbachu1 committed Jun 10, 2021
1 parent c38f031 commit 78672e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/CFG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ GTIRB_EXPORT_API std::ostream& operator<<(std::ostream& OS,
GTIRB_EXPORT_API std::ostream& operator<<(std::ostream& OS,
const EdgeLabel& Label) {
if (!Label) {
OS << "<no label>";
OS << "<No EdgeLabel>";
} else {
auto et = std::get<EdgeType>(*Label);
auto de = std::get<DirectEdge>(*Label);
auto ce = std::get<ConditionalEdge>(*Label);
OS << "(" << ce << ", " << de << ", " << et << ")";
auto ET = std::get<EdgeType>(*Label);
auto DE = std::get<DirectEdge>(*Label);
auto CE = std::get<ConditionalEdge>(*Label);
OS << "(" << CE << ", " << DE << ", " << ET << ")";
}
return OS;
}
Expand Down

0 comments on commit 78672e2

Please sign in to comment.