diff options
author | 2008-12-23 10:59:22 +0100 | |
---|---|---|
committer | 2008-12-24 02:34:41 -0800 | |
commit | 2479d0f7819bdc4328f28c317248f1a6f78e3e9f (patch) | |
tree | 7ae003d227abc6db5215c9762e25a11fae6ecf9f /inline.c | |
parent | Let void have sizeof 1 (diff) | |
download | sparse-2479d0f7819bdc4328f28c317248f1a6f78e3e9f.tar.gz sparse-2479d0f7819bdc4328f28c317248f1a6f78e3e9f.tar.bz2 sparse-2479d0f7819bdc4328f28c317248f1a6f78e3e9f.zip |
Revert the context tracking code
> Do you want to resend your change which revert the context changes?
> Make it base on Josh's git's tree and I will merge your changes in my
> branch.
Below. Or I can give it to you in git if you prefer. I still think we
should redo this in some form so that annotations with different
contexts can work properly, but I don't have time to take care of it
right now.
johannes
>From ca95b62edf1600a2b55ed9ca0515d049807a84fc Mon Sep 17 00:00:00 2001
From: Johannes Berg <johannes@sipsolutions.net>
Date: Tue, 23 Dec 2008 10:53:19 +0100
Subject: [PATCH] Revert context tracking code
Diffstat (limited to 'inline.c')
-rw-r--r-- | inline.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -331,18 +331,10 @@ static struct statement *copy_one_statement(struct statement *stmt) case STMT_CONTEXT: case STMT_EXPRESSION: { struct expression *expr = copy_expression(stmt->expression); - struct statement *newstmt; if (expr == stmt->expression) break; - newstmt = dup_statement(stmt); - newstmt->expression = expr; - if (stmt->required) { - expr = copy_expression(stmt->required); - if (expr == stmt->required) - break; - newstmt->required = expr; - } - stmt = newstmt; + stmt = dup_statement(stmt); + stmt->expression = expr; break; } case STMT_RANGE: { |