From b74f35618c087e4e6634707c6e03ca669315bcc9 Mon Sep 17 00:00:00 2001 From: Darrick Wiebe Date: Tue, 15 Apr 2025 17:39:27 -0400 Subject: Remove incorrect assert (#205) --- chapter21/src/main/java/com/seaofnodes/simple/codegen/Encoding.java | 1 - 1 file changed, 1 deletion(-) (limited to 'chapter21/src') diff --git a/chapter21/src/main/java/com/seaofnodes/simple/codegen/Encoding.java b/chapter21/src/main/java/com/seaofnodes/simple/codegen/Encoding.java index 74c128be..118ca47c 100644 --- a/chapter21/src/main/java/com/seaofnodes/simple/codegen/Encoding.java +++ b/chapter21/src/main/java/com/seaofnodes/simple/codegen/Encoding.java @@ -349,7 +349,6 @@ public class Encoding { // Delta is from opStart to opStart. X86 at least counts // the delta from the opEnd, but we don't have the end until // we decide the size - so the encSize has to deal - assert _opStart[target._nid] > 0; int delta = _opStart[target._nid] - _opStart[bb._nid]; byte opLen = riprel.encSize(delta); // Recorded size is smaller than the current size? -- cgit v1.2.3