From 5fb5e10cdce4680c84ab35c2176d2c685129de24 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 20 Dec 2005 20:08:01 +0000 Subject: [PATCH] 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 --- utils/TableGen/DAGISelEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index 25afc49dd76..80f226cd79f 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -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 {