[TableGen] Make TreePatternNode::getChild return a reference (NFC)
authorFlorian Hahn <florian.hahn@arm.com>
Thu, 14 Jun 2018 20:23:48 +0000 (20:23 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Thu, 14 Jun 2018 20:23:48 +0000 (20:23 +0000)
commit1b465767d6ca69f4b7201503f5f21e6125fe049a
tree65011566c013809ca14db98e31058386254d2d74
parentc00e44656dfbcb400af8d7f4fabf8f04d188104d
[TableGen] Make TreePatternNode::getChild return a reference (NFC)

The return value of TreePatternNode::getChild is never null. This patch also
updates various places that use return values of getChild to also use
references. Those changes were suggested post-commit for D47463.

llvm-svn: 334764
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/DAGISelEmitter.cpp
llvm/utils/TableGen/DAGISelMatcherGen.cpp
llvm/utils/TableGen/FastISelEmitter.cpp
llvm/utils/TableGen/GlobalISelEmitter.cpp