mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 06:18:39 +00:00
Merge pull request #6257 from krnowak/krnowak/asm-unknown-directives
Stop silently ignoring unknown directives on an inline asm expression
This commit is contained in:
@@ -3130,6 +3130,8 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
|
||||
} else {
|
||||
dialect = InlineAsmDialect_Intel;
|
||||
}
|
||||
} else {
|
||||
syntax_error(token, "Invalid directive on inline asm expression: '#%.*s'", LIT(token.string));
|
||||
}
|
||||
} else {
|
||||
syntax_error(f->curr_token, "Expected an identifier after hash");
|
||||
|
||||
Reference in New Issue
Block a user