Skip to content
Snippets Groups Projects
Commit 4b1a2878 authored by Andrew Pinski's avatar Andrew Pinski Committed by Tamar Christina
Browse files

cfgexpand: Factor out getting the stack decl index


This is the first patch in improving this code.
Since there are a few places which get the index and they
check the same thing, let's factor that out into one function.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

	* cfgexpand.cc (INVALID_STACK_INDEX): New defined.
	(decl_stack_index): New function.
	(visit_op): Use decl_stack_index.
	(visit_conflict): Likewise.
	(add_scope_conflicts_1): Likewise.

Signed-off-by: default avatarAndrew Pinski <quic_apinski@quicinc.com>
parent a856b4d9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment