aboutsummaryrefslogtreecommitdiffstats
path: root/cse.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-25 09:58:38 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:48 -0700
commit0cde10b1951b7175edab953b3325f8c0c990eea1 (patch)
tree79cbd1cf59842bb8a753c392738911a7ccd9dc1f /cse.c
parentea33f8c6c66bbf16c58965b9f5204d111969bf8c (diff)
downloadsparse-0cde10b1951b7175edab953b3325f8c0c990eea1.tar.gz
sparse-0cde10b1951b7175edab953b3325f8c0c990eea1.tar.xz
sparse-0cde10b1951b7175edab953b3325f8c0c990eea1.zip
Another assert - verify bb validity.
Diffstat (limited to 'cse.c')
-rw-r--r--cse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cse.c b/cse.c
index e8b9668..8c00a6b 100644
--- a/cse.c
+++ b/cse.c
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
+#include <assert.h>
#include "parse.h"
#include "expression.h"
@@ -223,8 +224,7 @@ static void clean_up_one_instruction(struct basic_block *bb, struct instruction
if (!insn->bb)
return;
- if (insn->bb != bb)
- warning(bb->pos, "instruction with bad bb");
+ assert(insn->bb == bb);
hash = insn->opcode;
switch (insn->opcode) {