projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc146b0
)
correct this logic.
author
Chris Lattner
<sabre@nondot.org>
Tue, 21 Sep 2010 20:46:40 +0000
(20:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 21 Sep 2010 20:46:40 +0000
(20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114474
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7b2898dcbfb77c5592d85b6e28f8b70f5b35d5fa..a754ac2040ba73fb4e9a7716b003abd05b6b7f08 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-2087,8
+2087,8
@@
SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
unsigned RecNo = MatcherTable[MatcherIndex++];
assert(RecNo < RecordedNodes.size() && "Invalid CheckComplexPat");
SDNode *Parent = 0;
- if (
NodeStack.size() > 1
)
- Parent = NodeStack[NodeStack.size()-
2
].getNode();
+ if (
!NodeStack.empty()
)
+ Parent = NodeStack[NodeStack.size()-
1
].getNode();
if (!CheckComplexPattern(NodeToMatch, Parent, RecordedNodes[RecNo], CPNum,
RecordedNodes))