If we get D_unknown, we definitely don't need to pass it to the
backend for analysis.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
}
break;
default:
- if (!d || !ofmt->directive(d, value, pass2))
- nasm_error(pass1 == 1 ? ERR_NONFATAL : ERR_PANIC,
- "unrecognised directive [%s]",
- directive);
+ if (ofmt->directive(d, value, pass2))
+ break;
+ /* else fall through */
+ case D_unknown:
+ nasm_error(pass1 == 1 ? ERR_NONFATAL : ERR_PANIC,
+ "unrecognised directive [%s]",
+ directive);
break;
}
if (err) {