diff options
author | Luc Van Oostenryck <lucvoo@kernel.org> | 2023-12-20 00:17:15 +0100 |
---|---|---|
committer | Luc Van Oostenryck <lucvoo@kernel.org> | 2024-01-29 18:10:48 +0100 |
commit | bf6ea1c69791eaf0ad58587f578d126b0484b688 (patch) | |
tree | 54a55c2ace0759ff997bc0b706bf56c22824fb5a | |
parent | 0544c547682b878758eea731ef4b8e64e5ec91fb (diff) | |
download | sparse-bf6ea1c69791eaf0ad58587f578d126b0484b688.tar.gz |
llvm: avoid trivial recursion in symbol_type()
Signed-off-by: Luc Van Oostenryck <lucvoo@kernel.org>
-rw-r--r-- | sparse-llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |