[llvm-commits] [llvm] r96731 - /llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
Chris Lattner
sabre at nondot.org
Sat Feb 20 23:19:06 PST 2010
Author: lattner
Date: Sun Feb 21 01:19:06 2010
New Revision: 96731
URL: http://llvm.org/viewvc/llvm-project?rev=96731&view=rev
Log:
handle optional in flags that aren't present.
Modified:
llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
Modified: llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h?rev=96731&r1=96730&r2=96731&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h Sun Feb 21 01:19:06 2010
@@ -672,7 +672,7 @@
// 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.
More information about the llvm-commits
mailing list