ir_print_visitor: Fix unclosed parenthesis in (assign ...
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 10 Apr 2010 00:29:47 +0000 (17:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 28 Apr 2010 22:34:52 +0000 (15:34 -0700)
Also remove useless parens around subexpressions.

ir_print_visitor.cpp

index 75fc109e1333070062ea9d7b627a795f535946fa..bd35bd7966b7431608f62dd41058de27986a9c66 100644 (file)
@@ -216,18 +216,18 @@ void ir_print_visitor::visit(ir_dereference *ir)
 
 void ir_print_visitor::visit(ir_assignment *ir)
 {
-   printf("(assign (");
+   printf("(assign ");
 
    if (ir->condition)
       ir->condition->accept(this);
    else
       printf("true");
 
-   printf(") (");
+   printf(" ");
 
    ir->lhs->accept(this);
 
-   printf(") (");
+   printf(" ");
 
    ir->rhs->accept(this);
    printf(") ");