[llvm] [DataLayout] Remove `clear` and `reset` methods (NFC) (PR #102993)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri May 16 22:26:13 PDT 2025


s-barannikov wrote:

> we used `DataLayout::reset` to replace a TargetMachine's data layout with one that marks certain address spaces as non-integral

`TargetMachine`'s DL member is `const` and `createDataLayout()` returns a const copy of it. How did you manage to call `reset()` on a copy and get it working? If you modified `TargetMachine.h`, I guess you can also replace `reset()` with copy assignment?


https://github.com/llvm/llvm-project/pull/102993


More information about the llvm-commits mailing list