Could you just mark compound_head __pure?  That would tell the compiler
that it's safe to re-use the return value as long as there is no memory
mutation in between.

Reply via email to