From a99eaeda5e41fd15a27bf8db80a04eb2d129bc66 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 30 Aug 2011 20:50:36 +0300 Subject: [PATCH] llvm, sparse: Fix symbol_is_fp_type() goof Signed-off-by: Pekka Enberg --- sparse-llvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index 62b62c47..22ed397b 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -27,7 +27,8 @@ struct function { static inline bool symbol_is_fp_type(struct symbol *sym) { if (!sym) - return NULL; + return false; + return sym->ctype.base_type == &fp_type; } -- 2.11.4.GIT