DWARF reader: avoid C++20 operator!= overload ambiguity

C++20 automatically generates overloads for certain comparison
operators based on others and this can create ambiguity with older
code. The type expr_result has various operators defined and comparing
expr_result != int becomes ambiguous.

This change just avoids this comparison by extracting the underlying
value, rather than making changes to the type itself. There should be
no change in behaviour and no tests are affected.

	* (src/abg-dwarf-reader.cc) op_is_control_flow: In the
	DW_OP_bra case, when testing the popped value, use the
	expr_result's const_value explicitly.

Change-Id: Ie25c0fea371a32483f2b4e20bd39d2448eb16cb4
Signed-off-by: Giuliano Procida <gprocida@google.com>
1 file changed