Address comments in https://reviews.llvm.org/D102226 to fix the bug + style violations
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the fix!
mlir/lib/IR/AsmPrinter.cpp | ||
---|---|---|
865 | You'll need to destroy this object at the end of the constructor, otherwise you'll leak memory. Can you directly push it into nameContext? You can then use that for the parent scope in the above loop (i.e. the nullptr). |
mlir/lib/IR/AsmPrinter.cpp | ||
---|---|---|
865 | Actually strike that, technically the scope doesn't have anything interesting inside of it. We also don't need to use the allocator, we could just use a simple variable for the top-level scope. |
You'll need to destroy this object at the end of the constructor, otherwise you'll leak memory. Can you directly push it into nameContext? You can then use that for the parent scope in the above loop (i.e. the nullptr).