diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-02 22:08:39 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-02 22:08:39 +0100 |
| commit | bc16b290ba6c2168baf1153b4c7691e679f68b46 (patch) | |
| tree | b18d799bde62c727111f042c0813a18e362e674a /src/ir_print.cpp | |
| parent | 96d32680fe1b83ec943382efb8e91c7029f0621f (diff) | |
Disable polymorphic overloading in the global scope
TODO: Figure out why it does not work in the global scope
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index b9bccc91c..36b0c9855 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -732,7 +732,8 @@ void ir_print_value(irFileBuffer *f, irModule *m, irValue *value, Type *type_hin ir_print_encoded_local(f, value->TypeName.name); break; case irValue_Global: { - Scope *scope = value->Global.entity->scope; + Entity *e = value->Global.entity; + Scope *scope = e->scope; bool in_global_scope = false; if (scope != NULL) { // TODO(bill): Fix this rule. What should it be? |