[mlir] use shared pointer to prevent vector resizes from destroying ops
The `MapVector` type stores key-value pairs in a vector, which, when resized, copies the entries and destroys the old ones. This causes the underlying operations to be deleted, subsequently causing segfaults. This patch makes the `mappings` map type refer to a shared pointer instead, so that resizing the vector doesn't call the operations' destructors. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D154511
parent
427278d1
Please register or sign in to comment