diff mbox series

[v2,17/18] Use SYMBOL_REF_P macro.

Message ID 20190806031137.305821-18-nivedita@alum.mit.edu
State New
Headers show
Series [v2,01/18] Fix CONST_DOUBLE_AS_FLOAT_P comment. | expand

Commit Message

Arvind Sankar Aug. 6, 2019, 3:11 a.m. UTC
2019-08-05  Arvind Sankar  <nivedita@alum.mit.edu>

	gcc/ChangeLog:

	* dwarf2out.c: Convert GET_CODE (..) == SYMBOL_REF to
	SYMBOL_REF_P (..).

 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index b2b4f6d82b2..ea38963d177 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -23747,8 +23747,7 @@  gen_variable_die (tree decl, tree origin, dw_die_ref context_die)
 		      if (single_element_loc_list_p (loc)
 			  && loc->expr->dw_loc_opc == DW_OP_addr
 			  && loc->expr->dw_loc_next == NULL
-			  && GET_CODE (loc->expr->dw_loc_oprnd1.v.val_addr)
-			     == SYMBOL_REF)
+			  && SYMBOL_REF_P (loc->expr->dw_loc_oprnd1.v.val_addr))
 			{
 			  rtx x = loc->expr->dw_loc_oprnd1.v.val_addr;
 			  loc->expr->dw_loc_oprnd1.v.val_addr