[Dominators] Change getNode parameter type to const NodeT * (NFC).
authorFlorian Hahn <florian.hahn@arm.com>
Sat, 16 Jun 2018 14:47:05 +0000 (14:47 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Sat, 16 Jun 2018 14:47:05 +0000 (14:47 +0000)
commit6fbad9040701e84ede8fc33293aa24e2f0ecf34c
tree985c8789cf31c821dd1e55798d8337a35f233106
parente7f703804d7dadbd57cf7c50f479324d012f09e7
[Dominators] Change getNode parameter type to const NodeT * (NFC).

DominatorTreeBase::getNode does not modify its parameter and this change
allows callers that only have access to const pointers to use it without
casting.

Reviewers: kuhar, dblaikie, chandlerc

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D48231

llvm-svn: 334892
llvm/include/llvm/Support/GenericDomTree.h
llvm/unittests/IR/DominatorTreeTest.cpp