From 9d107007a10c71f7f3ed2f22cc4553b5f27f5885 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 21 Apr 2020 09:34:00 +0300 Subject: [PATCH] x64: enhance diagnostic for unhandled nodes --- vlib/v/gen/x64/gen.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/v/gen/x64/gen.v b/vlib/v/gen/x64/gen.v index 6ea11cff49..2b21df8153 100644 --- a/vlib/v/gen/x64/gen.v +++ b/vlib/v/gen/x64/gen.v @@ -390,8 +390,9 @@ fn (mut g Gen) stmt(node ast.Stmt) { g.ret() } ast.StructDecl {} + ast.Module {} else { - println('x64.stmt(): bad node') + println('x64.stmt(): bad node: ' + typeof(node)) } } }