Hello,

I noticed that tree_node is implemented as a union (
https://code.woboq.org/gcc/gcc/tree-core.h.html#tree_node). However, I
cannot find a way of checking whether the current tree_node is really a
base or type.

For instance, currently when I am using:

is_gimple_constant(v)

Given `v` as a tree type but NOT base type, the above statement would
crash. I am thinking there should be a method like:

is_tree_base(v) == false

or something like this; however, I couldn't find one. Can anyone shed some
lights on this? Thank you very much!

best,
Shuai

Reply via email to