Fix to record comparator to make it work for return values > 1.
authorBill Wendling <isanbard@gmail.com>
Thu, 13 Nov 2008 12:03:00 +0000 (12:03 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 13 Nov 2008 12:03:00 +0000 (12:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59242 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/IntrinsicEmitter.cpp

index 9c4338e2eb98319956860a03745681f4738ba109..7883e7ca655d9c91c8606a586616f9cf6b0886d8 100644 (file)
@@ -222,7 +222,7 @@ namespace {
           return (*LHSVec)[i]->getName() < (*RHSVec)[i]->getName();
       } while (++i != LHSSize);
 
-      if (i != RHSSize) return false;
+      if (i != RHSSize) return true;
 
       i = 0;
       LHSVec = &LHS.second;