mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
handle optional in flags that aren't present.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8fbad244bd
commit
0fb65cffa6
@ -672,7 +672,7 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
||||
// If this has chain/flag inputs, add them.
|
||||
if (EmitNodeInfo & OPFL_Chain)
|
||||
Ops.push_back(InputChain);
|
||||
if (EmitNodeInfo & OPFL_Flag)
|
||||
if ((EmitNodeInfo & OPFL_Flag) && InputFlag.getNode() != 0)
|
||||
Ops.push_back(InputFlag);
|
||||
|
||||
// Create the node.
|
||||
|
Loading…
Reference in New Issue
Block a user