diff options
| author | Pekka Enberg <penberg@kernel.org> | 2011-10-24 13:03:35 +0300 |
|---|---|---|
| committer | Pekka Enberg <penberg@kernel.org> | 2011-10-24 18:35:36 +0300 |
| commit | 3b0407946777b10c3655fac2a0d5189b182aa7c0 (patch) | |
| tree | 2cfea785936fc50b7c447d474d570744f3408a9f /validation/backend | |
| parent | ea97bb4c5221a9be275b2d93dc90354bd6081a8c (diff) | |
| download | sparse-dev-3b0407946777b10c3655fac2a0d5189b182aa7c0.tar.gz | |
sparse, llvm: Fix struct code generation
Use LLVMGetTypeByName() to look up struct data types to fix code generation for
structs that refer to themselves.
Cc: Christopher Li <sparse@chrisli.org>
Cc: Jeff Garzik <jgarzik@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'validation/backend')
| -rw-r--r-- | validation/backend/struct.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/validation/backend/struct.c b/validation/backend/struct.c index 9d0cb56f..1afaf2db 100644 --- a/validation/backend/struct.c +++ b/validation/backend/struct.c @@ -6,6 +6,7 @@ struct symbol { void *p; const char *name; struct ctype ctype; + struct symbol *next_id; }; static struct symbol sym; |
