summaryrefslogtreecommitdiff
path: root/util/romcc
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-05-16 20:47:48 +0000
committerEric Biederman <ebiederm@xmission.com>2003-05-16 20:47:48 +0000
commit302763831dd1be38c59238f6fe32ec4518da28f9 (patch)
tree84d9177ee40a0925c213b7d9e67f60fffbd07c49 /util/romcc
parentda55d3e258b17dc45bacba9db5c6750df4886563 (diff)
downloadcoreboot-302763831dd1be38c59238f6fe32ec4518da28f9.tar.xz
- Fix ? expressions previously they were reversed.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@830 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc')
-rw-r--r--util/romcc/romcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index fbbd0ea0d2..386aa06b81 100644
--- a/util/romcc/romcc.c
+++ b/util/romcc/romcc.c
@@ -4307,6 +4307,8 @@ static struct triple *cond_expr(
if (!result_type) {
error(state, 0, "Incompatible types in conditional expression");
}
+ /* Cleanup and invert the test */
+ test = lfalse_expr(state, read_expr(state, test));
def = new_triple(state, OP_COND, result_type, 3);
def->param[0] = test;
def->param[1] = left;