diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-25 09:58:38 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:04:48 -0700 |
| commit | 0cde10b1951b7175edab953b3325f8c0c990eea1 (patch) | |
| tree | 79cbd1cf59842bb8a753c392738911a7ccd9dc1f | |
| parent | ea33f8c6c66bbf16c58965b9f5204d111969bf8c (diff) | |
| download | sparse-dev-0cde10b1951b7175edab953b3325f8c0c990eea1.tar.gz | |
Another assert - verify bb validity.
| -rw-r--r-- | cse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |
