OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edfbacb
)
Use const where possible. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 27 Sep 2017 10:03:17 +0000
(10:03 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 27 Sep 2017 10:03:17 +0000
(10:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314292
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CodeGenDAGPatterns.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CodeGenDAGPatterns.cpp
b/utils/TableGen/CodeGenDAGPatterns.cpp
index
9e98da1
..
1b5c1ae
100644
(file)
--- a/
utils/TableGen/CodeGenDAGPatterns.cpp
+++ b/
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