authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-24 18:58:53+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-05 18:34:31-04:00
logfe77c38247a8869719579f911bf2775f00462330
treea151b146004b30a97be8363862dec54c899dc87b
parenteff7555d5d62fc8c701529a9540fb296646d348e
signaturelock-open Commit is signed but in an unrecognized format.

ir: Remove unused and commented out code


1 files changed, 2 insertions(+), 2 deletions(-)

src/codegen.cpp+2-2
...@@ -3037,7 +3037,7 @@ static LLVMValueRef ir_render_bin_op(CodeGen *g, IrExecutableGen *executable,...@@ -3037,7 +3037,7 @@ static LLVMValueRef ir_render_bin_op(CodeGen *g, IrExecutableGen *executable,
3037 {3037 {
3038 assert(scalar_type->id == ZigTypeIdInt);3038 assert(scalar_type->id == ZigTypeIdInt);
3039 LLVMValueRef op2_casted = LLVMBuildZExt(g->builder, op2_value,3039 LLVMValueRef op2_casted = LLVMBuildZExt(g->builder, op2_value,
3040 LLVMTypeOf(op1_value), "");//gen_widen_or_shorten(g, false, op2->value->type, scalar_type, op2_value);3040 LLVMTypeOf(op1_value), "");
30413041
3042 if (want_runtime_safety) {3042 if (want_runtime_safety) {
3043 gen_shift_rhs_check(g, scalar_type, op2->value->type, op2_value);3043 gen_shift_rhs_check(g, scalar_type, op2->value->type, op2_value);
...@@ -3059,7 +3059,7 @@ static LLVMValueRef ir_render_bin_op(CodeGen *g, IrExecutableGen *executable,...@@ -3059,7 +3059,7 @@ static LLVMValueRef ir_render_bin_op(CodeGen *g, IrExecutableGen *executable,
3059 {3059 {
3060 assert(scalar_type->id == ZigTypeIdInt);3060 assert(scalar_type->id == ZigTypeIdInt);
3061 LLVMValueRef op2_casted = LLVMBuildZExt(g->builder, op2_value,3061 LLVMValueRef op2_casted = LLVMBuildZExt(g->builder, op2_value,
3062 LLVMTypeOf(op1_value), "");//gen_widen_or_shorten(g, false, op2->value->type, scalar_type, op2_value);3062 LLVMTypeOf(op1_value), "");
30633063
3064 if (want_runtime_safety) {3064 if (want_runtime_safety) {
3065 gen_shift_rhs_check(g, scalar_type, op2->value->type, op2_value);3065 gen_shift_rhs_check(g, scalar_type, op2->value->type, op2_value);