diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-25 12:42:45 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-25 12:42:45 +0000 |
| commit | a3e7b2baa1ede7ba328a9ec6b249051347ef4cae (patch) | |
| tree | c587795873d44ab1f3e91483fefa755df5322e30 /src/checker.cpp | |
| parent | fadf9b5309ece8f395f1d92738328eb0838f2cc1 (diff) | |
Revert change
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 9be64e369..b81d9987b 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -4855,13 +4855,12 @@ bool check_proc_info(Checker *c, ProcInfo *pi, UntypedExprInfoMap *untyped, Proc return false; } - // NOTE(bill, 2022-01-25): Appears to be not needed any more - // if (pt->is_polymorphic && pt->is_poly_specialized) { - // if ((e->flags & EntityFlag_Used) == 0) { - // // NOTE(bill, 2019-08-31): It was never used, don't check - // return false; - // } - // } + if (pt->is_polymorphic && pt->is_poly_specialized) { + if ((e->flags & EntityFlag_Used) == 0) { + // NOTE(bill, 2019-08-31): It was never used, don't check + return false; + } + } bool bounds_check = (pi->tags & ProcTag_bounds_check) != 0; bool no_bounds_check = (pi->tags & ProcTag_no_bounds_check) != 0; |