From bf6ea1c69791eaf0ad58587f578d126b0484b688 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Wed, 20 Dec 2023 00:17:15 +0100 Subject: llvm: avoid trivial recursion in symbol_type() Signed-off-by: Luc Van Oostenryck --- sparse-llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index 0b826ce0..90a931b7 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -194,7 +194,7 @@ static LLVMTypeRef symbol_type(struct symbol *sym) /* don't cache the result for SYM_NODE */ if (sym->type == SYM_NODE) - return symbol_type(sym->ctype.base_type); + sym = sym->ctype.base_type; if (sym->aux) return sym->aux; -- cgit 1.2.3-korg