aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2005-12-20 20:08:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2005-12-20 20:08:01 +0000
commit5fb5e10cdce4680c84ab35c2176d2c685129de24 (patch)
treeae320fa91c9f17f718dd19481898f68fb7025fd6 /utils/TableGen
parent2f0f9a69733fc587ff77ed4866db6bc32964a70a (diff)
downloadexternal_llvm-5fb5e10cdce4680c84ab35c2176d2c685129de24.zip
external_llvm-5fb5e10cdce4680c84ab35c2176d2c685129de24.tar.gz
external_llvm-5fb5e10cdce4680c84ab35c2176d2c685129de24.tar.bz2
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
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 25afc49..80f226c 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 {