diff options
| -rw-r--r-- | sparse-llvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sparse-llvm.c b/sparse-llvm.c index fc0399b4..1028e861 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -29,6 +29,8 @@ static LLVMTypeRef symbol_type(struct symbol *sym); static LLVMTypeRef func_return_type(struct symbol *sym) { + if (sym->type == SYM_NODE) + sym = sym->ctype.base_type; return symbol_type(sym->ctype.base_type); } |
