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:
8fbad24
)
handle optional in flags that aren't present.
author
Chris Lattner
<sabre@nondot.org>
Sun, 21 Feb 2010 07:19:06 +0000
(07:19 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 21 Feb 2010 07:19:06 +0000
(07:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96731
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/DAGISelHeader.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/DAGISelHeader.h
b/include/llvm/CodeGen/DAGISelHeader.h
index 7e6728ea807e56143a9685f6e467ba923b72d177..1e808ed217dc0a40decee0f28c4a5e0dedd09ee7 100644
(file)
--- 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.