aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--cse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cse.c b/cse.c
index e8b96687..8c00a6b9 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) {