Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: -W output shows "bool" instead of "untyped bool" #23833
I was debugging #23414 by compiling
with -W. In the output, there's
This is misleading though: the OEQ nodes actually have type "untyped bool", not "bool".
This appears to be because of this code in typefmt:
I suspect we should also add the "untyped" prefix at least for FDbg mode (used by -W). We can maybe even just do it unconditionally, since I don't think we should ever be generating type IDs for untyped bools/strings. (And if we are, it's probably wrong to use the typed versions.)