Allow comparing all pointer types to nil

This commit is contained in:
2025-02-03 23:04:00 +01:00
parent 607bf09434
commit aab16e4941
7 changed files with 187 additions and 98 deletions

View File

@ -650,9 +650,10 @@ namespace boot
class program : public block
{
public:
std::vector<definition *> type_definitions;
std::vector<type_definition *> types;
std::vector<procedure_definition *> procedures;
program(const struct position position, std::vector<definition *>&& type_definitions);
program(const struct position position);
virtual void accept(parser_visitor *visitor) override;
virtual ~program() override;

View File

@ -24,6 +24,7 @@ namespace gcc
{
void init_ttree();
bool is_pointer_type(tree type);
bool are_compatible_pointers(tree lhs, tree rhs);
class tree_chain_base
{