Skip to contentSkip to conversation

sparse, llvm: Fix symbol_type() for bitfields and enums

PATCH New Pekka Enberg 1 participant 1 message Oct 25, 2011 Sparse checker

lore
Share & tools
lore
#0 lore raw

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]>
---
 sparse-llvm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
sparse-llvm.c +2 -0
index 5d1b79c..9f4586f 100644
@@ -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