Use const where possible. NFCI.

llvm-svn: 314292
This commit is contained in:
Simon Pilgrim 2017-09-27 10:03:17 +00:00
parent 777731ab2b
commit a932bfcc93
1 changed files with 1 additions and 1 deletions

View File

@ -933,7 +933,7 @@ static unsigned getPatternSize(const TreePatternNode *P,
// Count children in the count if they are also nodes.
for (unsigned i = 0, e = P->getNumChildren(); i != e; ++i) {
TreePatternNode *Child = P->getChild(i);
const TreePatternNode *Child = P->getChild(i);
if (!Child->isLeaf() && Child->getNumTypes()) {
const TypeSetByHwMode &T0 = Child->getType(0);
// At this point, all variable type sets should be simple, i.e. only