Fix optimization dependent bug.
This commit is contained in:
parent
07bedc4e35
commit
8872bbf9b3
|
|
@ -1907,8 +1907,7 @@ static PLI_INT32 sys_severity_calltf(PLI_BYTE8*name)
|
||||||
|
|
||||||
/* convert name to upper and drop $ to get severity string */
|
/* convert name to upper and drop $ to get severity string */
|
||||||
sstr = strdup(name) + 1;
|
sstr = strdup(name) + 1;
|
||||||
t = sstr;
|
for (t=sstr; *t; t+=1) *t = toupper(*t);
|
||||||
while (*t) *t++ = toupper(*t);
|
|
||||||
|
|
||||||
scope = vpi_handle(vpiScope, callh);
|
scope = vpi_handle(vpiScope, callh);
|
||||||
assert(scope);
|
assert(scope);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue