Fix DPI import of null C-string (#5179).

This commit is contained in:
Wilson Snyder
2024-06-14 22:50:54 -04:00
parent 4695967185
commit ad2862ce3f
5 changed files with 28 additions and 15 deletions
+3
View File
@@ -305,6 +305,9 @@ struct TaskDpiUtils final {
if (portp->basicp() && portp->basicp()->keyword() == VBasicDTypeKwd::CHANDLE) {
frstmt = "VL_CVT_VP_Q(" + frName;
ket = ")";
} else if (portp->basicp() && portp->basicp()->keyword() == VBasicDTypeKwd::STRING) {
frstmt = "VL_CVT_N_CSTR(" + frName;
ket = ")";
} else if ((portp->basicp() && portp->basicp()->isDpiPrimitive())) {
frstmt = frName;
} else {