Skip to content

Commit

Permalink
Cleaner TextInstVisitor::visit(MinusInst* inst).
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Oct 19, 2023
1 parent 2a236c7 commit e6909d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/generator/text_instructions.hh
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class TextInstVisitor : public InstVisitor {

virtual void visit(MinusInst* inst)
{
if (dynamic_cast<LoadVarInst*>(inst->fInst)) {
if (inst->fInst->isSimpleValue()) {
*fOut << "-";
inst->fInst->accept(this);
} else {
Expand Down

0 comments on commit e6909d6

Please sign in to comment.