[llvm] r207380 - Fix an assert I accidentally broke to hopefully fix the build bots.

Craig Topper craig.topper at gmail.com
Sun Apr 27 12:40:43 PDT 2014


Author: ctopper
Date: Sun Apr 27 14:40:43 2014
New Revision: 207380

URL: http://llvm.org/viewvc/llvm-project?rev=207380&view=rev
Log:
Fix an assert I accidentally broke to hopefully fix the build bots.

Modified:
    llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=207380&r1=207379&r2=207380&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Sun Apr 27 14:40:43 2014
@@ -1689,7 +1689,7 @@ class CvtRndSatSDNode : public SDNode {
                            ArrayRef<SDValue> Ops, ISD::CvtCode Code)
     : SDNode(ISD::CONVERT_RNDSAT, Order, dl, getSDVTList(VT), Ops),
       CvtCode(Code) {
-    assert(NumOps == 5 && "wrong number of operations");
+    assert(Ops.size() == 5 && "wrong number of operations");
   }
 public:
   ISD::CvtCode getCvtCode() const { return CvtCode; }





More information about the llvm-commits mailing list