sparse, llvm: Fix symbol_type() for bitfields and enums
PATCH 1/1 sparse, llvm: Fix symbol_type() for bitfields and enums
This patch adds SYM_BITFIELD and SYM_ENUM support to symbol_type().
Cc Christopher Li <[email protected]>
Cc Jeff Garzik <[email protected]>
Cc Linus Torvalds <[email protected]>
Signed-off-by Pekka Enberg <[email protected]>
--- sparse-llvm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
sparse-llvm.c +2 -0
@@ -121,6 +121,8 @@ static LLVMTypeRef symbol_type(LLVMModuleRef module, struct symbol *sym)LLVMTypeRef ret =NULL ;switch (sym->type) { +case SYM_BITFIELD : +case SYM_ENUM :case SYM_NODE : ret =symbol_type (module, sym->ctype.base_type);break ;
Signature · 1 line
1.7.6.4