diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-08-23 04:58:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-08-23 04:58:30 +0000 |
commit | 610d0e16cfd973432dfdb1a7bed95d0cb47903ff (patch) | |
tree | 22d4e74ca89b36cd6bb9102891e2dbd3e44d8156 /gcc/go/gofrontend/expressions.h | |
parent | c92900d1db111ce186aa834ba8ce47abd765e578 (diff) | |
download | gcc-610d0e16cfd973432dfdb1a7bed95d0cb47903ff.zip gcc-610d0e16cfd973432dfdb1a7bed95d0cb47903ff.tar.gz gcc-610d0e16cfd973432dfdb1a7bed95d0cb47903ff.tar.bz2 |
compiler: Comparisons return untyped boolean value.
From-SVN: r190612
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 156cf3c..eea141f 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -623,9 +623,9 @@ class Expression // Return a tree implementing the comparison LHS_TREE OP RHS_TREE. // TYPE is the type of both sides. static tree - comparison_tree(Translate_context*, Operator op, Type* left_type, - tree left_tree, Type* right_type, tree right_tree, - Location); + comparison_tree(Translate_context*, Type* result_type, Operator op, + Type* left_type, tree left_tree, Type* right_type, + tree right_tree, Location); // Return a tree for the multi-precision integer VAL in TYPE. static tree @@ -1149,7 +1149,7 @@ class Binary_expression : public Expression Binary_expression(Operator op, Expression* left, Expression* right, Location location) : Expression(EXPRESSION_BINARY, location), - op_(op), left_(left), right_(right) + op_(op), left_(left), right_(right), type_(NULL) { } // Return the operator. @@ -1280,6 +1280,8 @@ class Binary_expression : public Expression Expression* left_; // The right hand side operand. Expression* right_; + // The type of a comparison operation. + Type* type_; }; // A call expression. The go statement needs to dig inside this. |