Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang] Update printing values in dump-parse-tree #112709

Merged
merged 2 commits into from
Oct 17, 2024
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>) {
klausler marked this conversation as resolved.
Show resolved Hide resolved
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