[llvm-commits] [patch] Tautology?
Zhongxing Xu
xuzhongxing at gmail.com
Wed Mar 17 19:49:16 PDT 2010
Index: utils/TableGen/Record.cpp
===================================================================
--- utils/TableGen/Record.cpp (版本 98703)
+++ utils/TableGen/Record.cpp (工作副本)
@@ -644,20 +644,6 @@
DagInit *LHSs = dynamic_cast<DagInit*>(LHS);
DagInit *RHSs = dynamic_cast<DagInit*>(RHS);
if (LHSs && RHSs) {
- DefInit *LOp = dynamic_cast<DefInit*>(LHSs->getOperator());
- DefInit *ROp = dynamic_cast<DefInit*>(RHSs->getOperator());
- if (LOp->getDef() != ROp->getDef()) {
- bool LIsOps =
- LOp->getDef()->getName() == "outs" ||
- LOp->getDef()->getName() != "ins" ||
- LOp->getDef()->getName() != "defs";
- bool RIsOps =
- ROp->getDef()->getName() == "outs" ||
- ROp->getDef()->getName() != "ins" ||
- ROp->getDef()->getName() != "defs";
- if (!LIsOps || !RIsOps)
- throw "Concated Dag operators do not match!";
- }
std::vector<Init*> Args;
std::vector<std::string> ArgNames;
for (unsigned i = 0, e = LHSs->getNumArgs(); i != e; ++i) {
LOp->getDef()->getName() != "ins" || LOp->getDef()->getName() != "defs";
will always be true.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100318/b99874c8/attachment.html>
More information about the llvm-commits
mailing list