Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- sparse-llvm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sparse-llvm.c b/sparse-llvm.c index 3a68d09d9..9a0a76096 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -654,6 +654,10 @@ static void output_op_compare(struct function *fn, struct instruction *insn) switch (LLVMGetTypeKind(LLVMTypeOf(lhs))) { case LLVMPointerTypeKind: + lhs = value_to_pvalue(fn, &ptr_ctype, lhs); + rhs = value_to_pvalue(fn, &ptr_ctype, rhs); + /* fall through */ + case LLVMIntegerTypeKind: { LLVMIntPredicate op = translate_op(insn->opcode); -- 2.14.0 -- 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