From 34317397fba355b3288f92a5534bdacf86a723eb Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 27 Feb 2012 13:59:54 +0100 Subject: [PATCH] Correct comments: pos must be < n_loc, not <=. --- include/libfirm/ircons.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libfirm/ircons.h b/include/libfirm/ircons.h index b378702d5..25a2915f8 100644 --- a/include/libfirm/ircons.h +++ b/include/libfirm/ircons.h @@ -891,7 +891,7 @@ FIRM_API ir_node *get_r_cur_block(ir_graph *irg); /** Returns the current value of a local variable. * * Use this function to obtain the last definition of the local variable - * associated with pos. Pos may not exceed the value passed as n_loc + * associated with pos. pos must be less than the value passed as n_loc * to new_ir_graph. This call automatically inserts Phi nodes. * * @param pos The position/id of the local variable. @@ -919,7 +919,7 @@ FIRM_API ir_mode *ir_r_guess_mode(ir_graph *irg, int pos); /** Remark a new definition of a variable. * * Use this function to remember a new definition of the value - * associated with pos. Pos may not exceed the value passed as n_loc + * associated with pos. pos must be less than the value passed as n_loc * to new_ir_graph. This call is needed to automatically inserts Phi * nodes. * -- 2.20.1