sparse, llvm: fix struct name generation
commit5b950a99d4a81db8581741def3ea6acf05b0b493
authorXi Wang <xi.wang@gmail.com>
Tue, 21 May 2013 08:05:19 +0000 (21 04:05 -0400)
committerPekka Enberg <penberg@kernel.org>
Tue, 21 May 2013 09:21:09 +0000 (21 12:21 +0300)
tree2a7bfbd28b699687b559b800553bdc6cc7dd05bd
parent4858eafe71ea9cd6e61a8ee2883e2cde28430f20
sparse, llvm: fix struct name generation

Avoid null pointer dereference when ->ident is null (e.g., anonymous
struct).  Also, use ->aux to avoid recursion.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
sparse-llvm.c
validation/backend/struct.c