Fix the semantic of Requires<[cond]> to mean if (!cond) goto PXXFail;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2005-12-20 20:08:01 +00:00
parent 2f0f9a6973
commit 5fb5e10cdc

View File

@ -1803,7 +1803,7 @@ public:
OS << " if (";
else
OS << " && ";
OS << "(" << Def->getValueAsString("CondString") << ")";
OS << "!(" << Def->getValueAsString("CondString") << ")";
if (i == e-1)
OS << ") goto P" << PatternNo << "Fail;\n";
} else {