summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-15 01:06:50 +0300
committerOxore <oxore@protonmail.com>2023-05-15 01:06:50 +0300
commit14268e5371ac3a3e57e4eeb49d85e510ccfe4b03 (patch)
treec57cfaf6fce0a7f9c6a3774fbaf27138c25a05d4
parent8847e3c560327dbc04123fa832983453cc27d542 (diff)
Fix assert
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 3ce4a7d..a1f2214 100644
--- a/main.cpp
+++ b/main.cpp
@@ -172,7 +172,7 @@ static void RenderDisassembly(
fprintf(output, ".L%08x:\n", node->offset);
}
}
- assert(node->opcode != OpCode::kNone);
+ assert(node->op.opcode != OpCode::kNone);
if (ShouldPrintAsRaw(node->op)) {
auto raw = Op::Raw(GetU16BE(code.buffer + node->offset));
raw.FPrint(output, s);