diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-08-30 20:50:36 +0300 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2011-08-30 20:50:36 +0300 |
commit | a99eaeda5e41fd15a27bf8db80a04eb2d129bc66 (patch) | |
tree | 356a1df98275e3d02fc6d489f5b6c894beba8b9c | |
parent | e6ad114d067833834d21d66ac421cb1a6dbd1a5e (diff) | |
download | sparse-a99eaeda5e41fd15a27bf8db80a04eb2d129bc66.tar.gz |
llvm, sparse: Fix symbol_is_fp_type() goof
Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r-- | sparse-llvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |