diff mbox

Fix TRY_CATCH_EXPR comment

Message ID 56FE7105.3090801@acm.org
State New
Headers show

Commit Message

Nathan Sidwell April 1, 2016, 1 p.m. UTC
In working on 55635 I noticed the comment for TRY_CATCH_EXPR was confusing.   It 
is using 'operand 1' and 'operand 2' to mean 'first' and 'second', not literally 
op[1] and op[2].   Fixed to use indices 0 and 1.

Applied as obvious.

nathan
diff mbox

Patch

2016-04-01  Nathan Sidwell  <nathan@acm.org>

	* tree.def (TRY_CATCH_EXPR): Correct documentation.

Index: tree.def
===================================================================
--- tree.def	(revision 234668)
+++ tree.def	(working copy)
@@ -870,10 +870,10 @@  DEFTREECODE (POSTINCREMENT_EXPR, "postin
 /* Used to implement `va_arg'.  */
 DEFTREECODE (VA_ARG_EXPR, "va_arg_expr", tcc_expression, 1)
 
-/* Evaluate operand 1.  If and only if an exception is thrown during
-   the evaluation of operand 1, evaluate operand 2.
+/* Evaluate operand 0.  If and only if an exception is thrown during
+   the evaluation of operand 0, evaluate operand 1.
 
-   This differs from TRY_FINALLY_EXPR in that operand 2 is not evaluated
+   This differs from TRY_FINALLY_EXPR in that operand 1 is not evaluated
    on a normal or jump exit, only on an exception.  */
 DEFTREECODE (TRY_CATCH_EXPR, "try_catch_expr", tcc_statement, 2)