DominatorTreeBase::getNode does not modify its parameter and this change
allows callers that only have access to const pointers to use it without
casting.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Feel free to commit changes like this without review - seems sensible/obvious enough. (in theory you could write a unit test, perhaps? but hardly seems worth it for this change - maybe if an existing test covers this code you could change it to have a const parameter)
include/llvm/Support/GenericDomTree.h | ||
---|---|---|
362 ↗ | (On Diff #151540) | How about this place? |
Comment Actions
Thanks, I've committed this and added const to the operator[] type as well as tweaked a test to pass in a const pointer.