summaryrefslogtreecommitdiff
path: root/chapter21/src/main/java/com
diff options
context:
space:
mode:
authorDarrick Wiebe <darrickw@gmail.com>2025-04-15 17:39:27 -0400
committerGitHub <noreply@github.com>2025-04-15 14:39:27 -0700
commitb74f35618c087e4e6634707c6e03ca669315bcc9 (patch)
tree2394dd59ef8bdb3a79b1bc9363b4550dd0ede702 /chapter21/src/main/java/com
parentd4d894407b9cbf83217da3bde1ecbd6d783297e4 (diff)
downloadSimple-b74f35618c087e4e6634707c6e03ca669315bcc9.tar.gz
Simple-b74f35618c087e4e6634707c6e03ca669315bcc9.zip
Remove incorrect assert (#205)
Diffstat (limited to 'chapter21/src/main/java/com')
-rw-r--r--chapter21/src/main/java/com/seaofnodes/simple/codegen/Encoding.java1
1 files changed, 0 insertions, 1 deletions
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?