aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-30 19:45:36 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:51 -0700
commitf4dc67f56d40d7373841ddaf01b862ec2bc140a1 (patch)
treedcd066a7f7086bfd05e212397a456d385c305cff /symbol.c
parent9fb615407dca8d4835971ec4668a435845038c12 (diff)
downloadsparse-f4dc67f56d40d7373841ddaf01b862ec2bc140a1.tar.gz
Make sure to examine restricted types too.
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index d5489ec6..a26d311e 100644
--- a/symbol.c
+++ b/symbol.c
@@ -389,6 +389,9 @@ struct symbol *examine_symbol_type(struct symbol * sym)
case SYM_UNINITIALIZED:
warning(sym->pos, "ctype on uninitialized symbol %p", sym);
return NULL;
+ case SYM_RESTRICT:
+ examine_base_type(sym);
+ return sym;
default:
warning(sym->pos, "Examining unknown symbol type %d", sym->type);
break;