The opcode enum defines the boundary values OP_TERMINATOR and OP_TERMINATOR_END for terminator instructions; use those in bb_terminated rather than the specific values they currently equal. Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxx> --- linearize.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/linearize.h b/linearize.h index ac946f3..517ec67 100644 --- a/linearize.h +++ b/linearize.h @@ -254,7 +254,8 @@ static inline int bb_terminated(struct b if (!bb) return 0; insn = last_instruction(bb->insns); - return insn && insn->opcode >= OP_RET && insn->opcode <= OP_UNWIND; + return insn && insn->opcode >= OP_TERMINATOR + && insn->opcode <= OP_TERMINATOR_END; } static inline int bb_reachable(struct basic_block *bb) -- 1.4.1.1 - To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html