Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/IRPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ void IRPrinter::visit(const StringImm *op) {
}

void IRPrinter::visit(const Cast *op) {
stream << type(op->type);
stream << kw("cast<") << type(op->type) << kw(">");
openf();
print_no_parens(op->value);
closef();
Expand Down
10 changes: 6 additions & 4 deletions src/StmtToHTML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1429,19 +1429,21 @@ class HTMLCodePrinter : public IRVisitor {
void visit(const Cast *op) override {
std::string type_str = type_to_string(op->type);
print_opening_tag("span", "Cast");
print_opening_tag("span", "matched");
print_opening_tag("span", "matched keyword");
print_text("cast&lt;");
print_type(op->type);
print_text("(");
print_text("&gt;");
print_closing_tag("span");
print_html_element("span", "matched", "(", type_str);
print(op->value);
print_html_element("span", "matched", ")");
print_html_element("span", "matched", ")", type_str);
print_closing_tag("span");
}

void visit(const Reinterpret *op) override {
std::string type_str = type_to_string(op->type);
print_opening_tag("span", "Reinterpret");
print_opening_tag("span", "matched Symbol", type_str);
print_opening_tag("span", "matched keyword", type_str);
print_text("reinterpret&lt;");
print_type(op->type);
print_text("&gt;");
Expand Down
Loading