diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-09-27 10:03:17 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-09-27 10:03:17 +0000 |
commit | a932bfcc93a976e90ccca656548f933e34cd812d (patch) | |
tree | ae7b62fbb3c09b3341afa94a593d8699e27679af | |
parent | 777731ab2b866083f281fe8dd6a1c64de33210b7 (diff) | |
download | bcm5719-llvm-a932bfcc93a976e90ccca656548f933e34cd812d.tar.gz bcm5719-llvm-a932bfcc93a976e90ccca656548f933e34cd812d.zip |
Use const where possible. NFCI.
llvm-svn: 314292
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index 9e98da1d107..1b5c1ae89b3 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -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 |