mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
correct this logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114474 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc146b0a4d
commit
77bd88cda5
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user