Seems like this can be const, since Passes shouldn't modify it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This isn't const *correctness*, this is adding a new restriction. The existing code is totally correct, but this potentially makes downstream code no longer correct.
Comment Actions
Sure, didn't mean to suggest it was a bad change to be making, just that it should be framed accurately rather than in this misleading way (that suggests we currently have a bug)
Comment Actions
this is adding a new restriction
It is mostly relaxing a restriction, now allowing getTargetTransformInfo and getTargetIRAnalysis to be called with a const TargetTransformInfo for this
Comment Actions
Per comments, please change the message to message to something like "Mark X as const", but otherwise LGTM.