summaryrefslogtreecommitdiff
path: root/util/romcc/romcc.c
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2004-05-29 21:26:03 +0000
committerEric Biederman <ebiederm@xmission.com>2004-05-29 21:26:03 +0000
commit5a78bd03a682bb3b8966e5684fc5b2a22e3058f2 (patch)
tree41d5bdee11c3fc40cbcdabe0ba43489614f322d0 /util/romcc/romcc.c
parentbb20a721630a2c37110d6b34def7748c883b4a70 (diff)
downloadcoreboot-5a78bd03a682bb3b8966e5684fc5b2a22e3058f2.tar.xz
- Don't confuse return statements with conditional branches
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1587 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc/romcc.c')
-rw-r--r--util/romcc/romcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index c487566d0a..f42a24150e 100644
--- a/util/romcc/romcc.c
+++ b/util/romcc/romcc.c
@@ -20782,7 +20782,7 @@ static void scc_visit_cbranch(struct compile_state *state, struct scc_state *scc
static void scc_add_sedge_dst(struct compile_state *state,
struct scc_state *scc, struct ssa_edge *sedge)
{
- if (triple_is_branch(state, sedge->dst->def)) {
+ if (triple_is_cbranch(state, sedge->dst->def)) {
scc_visit_cbranch(state, scc, sedge->dst);
}
else if (triple_is_def(state, sedge->dst->def)) {