aboutsummaryrefslogtreecommitdiff
path: root/flow.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-02-04 19:03:19 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:22 -0700
commit50716970e1091709563bea8834665af27150c346 (patch)
tree92d3681311c088de0e9e4a28f8e2c939cc1ed447 /flow.c
parentMake each instruction have a position of its own. (diff)
downloadsparse-50716970e1091709563bea8834665af27150c346.tar.gz
sparse-50716970e1091709563bea8834665af27150c346.tar.bz2
sparse-50716970e1091709563bea8834665af27150c346.zip
Use the new per-instruction position information for better
error reporting.
Diffstat (limited to 'flow.c')
-rw-r--r--flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flow.c b/flow.c
index a415cd9..00bc807 100644
--- a/flow.c
+++ b/flow.c
@@ -584,7 +584,7 @@ void check_access(struct instruction *insn)
struct symbol *sym = pseudo->sym;
if (sym->bit_size > 0 && (offset < 0 || bit > sym->bit_size))
- warning(insn->bb->pos, "invalid access %s '%s' (%d %d)",
+ warning(insn->pos, "invalid access %s '%s' (%d %d)",
offset < 0 ? "below" : "past the end of",
show_ident(sym->ident), offset, sym->bit_size >> 3);
}