mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-03 01:40:23 +00:00
verific: handle nullptr for message_id
This commit is contained in:
parent
6440499e57
commit
f92a53ec31
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ void msg_func(msg_type_t msg_type, const char *message_id, linefile_type linefil
|
|||
msg_type == VERIFIC_IGNORE ? "IGNORE" :
|
||||
msg_type == VERIFIC_INFO ? "INFO" :
|
||||
msg_type == VERIFIC_COMMENT ? "COMMENT" :
|
||||
msg_type == VERIFIC_PROGRAM_ERROR ? "PROGRAM_ERROR" : "UNKNOWN", message_id);
|
||||
msg_type == VERIFIC_PROGRAM_ERROR ? "PROGRAM_ERROR" : "UNKNOWN", message_id ? message_id : "");
|
||||
|
||||
string message = linefile ? stringf("%s:%d: ", LineFile::GetFileName(linefile), LineFile::GetLineNo(linefile)) : "";
|
||||
message += vstringf(msg, args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue