shithub: mc

Download patch

ref: 1ded9b772e698bf9aa277fc3790c7674046161e2
parent: 6c80892463e0ae42dfd5bbce14adbaad1624ad93
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jan 11 18:45:52 EST 2016

Silence a clang check error.

    The check is unnecessary, and it causes some confusion
    and static checking noise.

    Fixes #38

--- a/parse/infer.c
+++ b/parse/infer.c
@@ -2101,8 +2101,7 @@
 	k = htkeys(s->dcl, &n);
 	for (i = 0; i < n; i++) {
 		d = getdcl(s, k[i]);
-		if (d)
-			d->decl.type = tyfix(st, d, d->decl.type, 0);
+		d->decl.type = tyfix(st, d, d->decl.type, 0);
 		if (!d->decl.isconst && !d->decl.isgeneric)
 			continue;
 		if (d->decl.trait)