gcc/ada/
* inline.adb (Formal_Is_Used_Once): Refine type of the counter
variable; remove redundant assignment.
-------------------------
function Formal_Is_Used_Once (Formal : Entity_Id) return Boolean is
- Use_Counter : Int := 0;
+ Use_Counter : Nat := 0;
function Count_Uses (N : Node_Id) return Traverse_Result;
-- Traverse the tree and count the uses of the formal parameter.
then
Use_Counter := Use_Counter + 1;
- if Use_Counter > 1 then
-
- -- Denote more than one use and abandon the traversal
+ -- If this is a second use then abandon the traversal
- Use_Counter := 2;
+ if Use_Counter > 1 then
return Abandon;
-
end if;
end if;