On 4/27/2021 7:01 PM, Tom Tromey wrote:
This changes libcc1 to use std::vector in the code that builds
function types.  This avoids some explicit memory management.

libcc1/ChangeLog
2021-04-27  Tom Tromey  <t...@tromey.com>

        * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
        * libcc1plugin.cc (plugin_build_function_type): Use std::vector.

Does this really work?   In general we can't stuff GC'd objects into something like std::vector.  Though I guess in this instance the lifetime is limited and we don't have to worry about the GC system?


Jeff

Reply via email to