Refactor TypeStruct and TypeCode restoration

This commit is contained in:
caheckman 2021-11-16 12:14:34 -05:00
parent c53334038d
commit e4451fcd49
10 changed files with 204 additions and 145 deletions

View file

@ -1591,7 +1591,7 @@ void PrintC::pushConstant(uintb val,const Datatype *ct,
clear();
throw LowlevelError("Cannot have a constant of type void");
case TYPE_PTR:
case TYPE_PTRSTRUCT:
case TYPE_PTRREL:
if (option_NULL&&(val==0)) { // A null pointer
pushAtom(Atom(nullToken,vartoken,EmitXml::var_color,op,vn));
return;