Capture the name for mlir::OpPassManager in std::string instead of StringRef (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Thu, 5 Nov 2020 03:09:20 +0000 (03:09 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 5 Nov 2020 05:28:44 +0000 (05:28 +0000)
commit4455f3ce72ba2bb0276200f6f29629afca8812d4
treed1876ca78a6c9b18b0648f7a317f33dcabb1bb0a
parent9f9077d7d1b436c75e493916c7c196a4c4937388
Capture the name for mlir::OpPassManager in std::string instead of StringRef (NFC)

The previous behavior was fragile when building an OpPassManager using a
string, as it was forcing the client to ensure the string to outlive the
entire PassManager.
This isn't a performance sensitive area either that would justify
optimizing further.
mlir/lib/Pass/Pass.cpp