aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-01 20:17:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:02:30 -0700
commitc3b6ccf01b43193b705a1f4332e9b28b7ace3938 (patch)
tree1f18fb793b26914ceed6f52ff5387731b2ed1fb9 /inline.c
parent[be] fix amazingly stupid conditional expression handling (diff)
downloadsparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.tar.gz
sparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.tar.bz2
sparse-c3b6ccf01b43193b705a1f4332e9b28b7ace3938.zip
Add "select" expression.
It's the same as a regular C conditional, except you could evaluate both sides first. Right now we treat it exactly the same as an EXPR_CONDITIONAL.
Diffstat (limited to 'inline.c')
-rw-r--r--inline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/inline.c b/inline.c
index 9b30d45..6591a5e 100644
--- a/inline.c
+++ b/inline.c
@@ -130,6 +130,7 @@ static struct expression * copy_expression(struct expression *expr)
}
/* Conditional expression */
+ case EXPR_SELECT:
case EXPR_CONDITIONAL: {
struct expression *cond = copy_expression(expr->conditional);
struct expression *true = copy_expression(expr->cond_true);