fix an off-by-one error.
authorChris Lattner <sabre@nondot.org>
Tue, 23 Feb 2010 01:07:09 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Feb 2010 01:07:09 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96844 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/DAGISelHeader.h

index d28f4dad044dc93462a5303a1e063a581274ed0e..345b9f4eb41ab8589b56496bb5c9f2b43e94955a 100644 (file)
@@ -712,7 +712,7 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
         if (RecNo & 128)
           RecNo = GetVBR(RecNo, MatcherTable, MatcherIndex);
         
-        assert(RecNo < RecordedNodes.size() && "Invalid CheckSame");
+        assert(RecNo < RecordedNodes.size() && "Invalid EmitNode");
         Ops.push_back(RecordedNodes[RecNo]);
       }