Message ID | 20170814194152.36289-4-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
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);
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- sparse-llvm.c | 4 ++++ 1 file changed, 4 insertions(+)