]> git.sur5r.net Git - cc65/commitdiff
Remove stack pointer check in RemoveCodeRange - the calling function has to
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 7 Sep 2009 14:21:19 +0000 (14:21 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 7 Sep 2009 14:21:19 +0000 (14:21 +0000)
take care about that.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4128 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/asmcode.c

index e5fff9af082179853e4fa5041da916bffa4493ac..83ea3b2520586d2c0e3558b567add9c6cf4cc446 100644 (file)
@@ -70,11 +70,6 @@ void RemoveCodeRange (const CodeMark* Start, const CodeMark* End)
         return;
     }
 
-    /* We can only delete the range if End is the end of the code segment or
-     * if both SP values are identical.
-     */
-    CHECK (Start->SP == End->SP || End->Pos == CS_GetEntryCount (CS->Code));
-
     /* Delete the range */
     CS_DelCodeRange (CS->Code, Start->Pos, End->Pos-1);
 }