Skip to content

Commit

Permalink
v: parser: Fix compile breakages due to verror
Browse files Browse the repository at this point in the history
  • Loading branch information
raw-bin committed Oct 3, 2024
1 parent 3055d7b commit 6f509e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vlib/v/parser/parser.v
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ fn (mut p Parser) asm_addressing_rv64(disp_type RV64Displacement, disp_val ?stri
.int_as_base_no_pars {
p.check(.lpar)
displacement := ast.AsmArg(ast.AsmDisp {
val: disp_val or { verror("Expected displacement string") }
val: disp_val or { "Expected displacement string" }
pos: p.tok.pos()
})
base := p.reg_or_alias()
Expand All @@ -1619,7 +1619,7 @@ fn (mut p Parser) asm_addressing_rv64(disp_type RV64Displacement, disp_val ?stri
ast.IntegerLiteral { ...first_number_lit }
}
else {
verror("Expected displacement integer")
util.verror("parser error", "Expected displacement integer")
}
}
match p.tok.kind {
Expand Down Expand Up @@ -1653,7 +1653,7 @@ fn (mut p Parser) asm_addressing_rv64(disp_type RV64Displacement, disp_val ?stri
ast.IntegerLiteral { ...second_number_lit }
}
else {
verror("Expected displacement integer")
util.verror("parser error", "Expected displacement integer")
}
}
displacement := ast.AsmArg(ast.AsmDisp {
Expand All @@ -1667,7 +1667,7 @@ fn (mut p Parser) asm_addressing_rv64(disp_type RV64Displacement, disp_val ?stri
base, displacement
}
else {
verror("Unsupported or invalid RV64 inline assembly")
util.verror("parser error", "Unsupported or invalid RV64 inline assembly")
}
}
}
Expand Down

0 comments on commit 6f509e5

Please sign in to comment.