Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions flang/include/flang/Parser/dump-parse-tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,10 @@ class ParseTreeDumper {
} else if constexpr (HasSource<T>::value) {
return x.source.ToString();
#endif
} else if constexpr (std::is_same_v<T, std::string>) {
return x;
} else if constexpr (std::is_same_v<T, int>) {
return std::to_string(x);
} else if constexpr (std::is_same_v<T, bool>) {
return x ? "true" : "false";
} else {
return "";
}
Expand Down
Loading