summaryrefslogtreecommitdiff
path: root/mi/flatten.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/flatten.c')
-rw-r--r--mi/flatten.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mi/flatten.c b/mi/flatten.c
index 9ef2c70..1b95d0f 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -1081,7 +1081,9 @@ isconstfn(Node *n)
d = n;
}
t = tybase(decltype(d));
- if (!d || !d->decl.isconst || !d->decl.isglobl || d->decl.isgeneric)
+ if (!d || !d->decl.isconst || d->decl.isgeneric)
+ return 0;
+ if (!d->decl.isglobl && !d->decl.isextern)
return 0;
if (t->type != Tyfunc && t->type != Tycode)
return 0;