Format null pointers as 'null' rather than 'zeroinitializer'

This commit is contained in:
baldurk
2023-02-16 13:04:04 +00:00
parent d1c2fc3a49
commit e50eab747a
@@ -1888,7 +1888,10 @@ rdcstr Constant::toString(bool withType) const
}
else if(isNULL())
{
ret += "zeroinitializer";
if(type->type == Type::Pointer)
ret += "null";
else
ret += "zeroinitializer";
}
else if(type->type == Type::Vector)
{