summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-21 07:19:06 +0000
committerChris Lattner <sabre@nondot.org>2010-02-21 07:19:06 +0000
commit0fb65cffa6d759f9b18177286edc29688a0a88b3 (patch)
treeb8ac72abaa20de57af7a4ca5b737dda0d33ffa06 /include
parent8fbad244bd436163296d81d4f182750e000fd16d (diff)
downloadllvm-0fb65cffa6d759f9b18177286edc29688a0a88b3.tar.gz
llvm-0fb65cffa6d759f9b18177286edc29688a0a88b3.tar.bz2
llvm-0fb65cffa6d759f9b18177286edc29688a0a88b3.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/DAGISelHeader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/DAGISelHeader.h b/include/llvm/CodeGen/DAGISelHeader.h
index 7e6728ea80..1e808ed217 100644
--- a/include/llvm/CodeGen/DAGISelHeader.h
+++ b/include/llvm/CodeGen/DAGISelHeader.h
@@ -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.