tree: Change error_operand_p to an inline function
authorJason Merrill <jason@redhat.com>
Tue, 31 Aug 2021 16:54:37 +0000 (12:54 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 7 Sep 2021 18:09:38 +0000 (14:09 -0400)
commitc03db573b9e619f9e4f7d7111f99877368c78e26
tree6339d667948245908afdd9af00080eda82edfc53
parent81f9718139cb1cc164ada411ada8cca9f32b8be8
tree: Change error_operand_p to an inline function

I've thought for a while that many of the macros in tree.h and such should
become inline functions.  This one in particular was confusing Coverity; the
null check in the macro made it think that all code guarded by
error_operand_p would also need null checks.

gcc/ChangeLog:

* tree.h (error_operand_p): Change to inline function.
gcc/tree.h