authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-03-08 19:18:25+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-03-08 19:18:25+11:00
logc8050a931c11e34bc6f4723eaed30f0a1bde5b14
tree8e450ca06a196ce286ecbb850808be0040c480a8
parentb85bb152bf4c84a298200703d9a005ffcd1b24a0
signaturelock-open Commit is signed but in an unrecognized format.

Strip trailing whitespace from src/ir.cpp


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

src/ir.cpp+3-3
......@@ -9014,7 +9014,7 @@ static IrInstSrc *ir_gen_switch_expr(IrBuilderSrc *irb, Scope *scope, AstNode *n
90149014 return irb->codegen->invalid_inst_src;
90159015 }
90169016 else_prong = prong_node;
9017 } else if (prong_item_count == 1 &&
9017 } else if (prong_item_count == 1 &&
90189018 prong_node->data.switch_prong.items.at(0)->type == NodeTypeSymbol &&
90199019 buf_eql_str(prong_node->data.switch_prong.items.at(0)->data.symbol_expr.symbol, "_")) {
90209020 if (underscore_prong) {
......@@ -26068,7 +26068,7 @@ static IrInstGen *ir_analyze_instruction_slice(IrAnalyze *ira, IrInstSrcSlice *i
2606826068 if (array_type->data.pointer.ptr_len == PtrLenC) {
2606926069 array_type = adjust_ptr_len(ira->codegen, array_type, PtrLenUnknown);
2607026070
26071 // C pointers are allowzero by default.
26071 // C pointers are allowzero by default.
2607226072 // However, we want to be able to slice them without generating an allowzero slice (see issue #4401).
2607326073 // To achieve this, we generate a runtime safety check and make the slice type non-allowzero.
2607426074 if (array_type->data.pointer.allow_zero) {
......@@ -26363,7 +26363,7 @@ static IrInstGen *ir_analyze_instruction_slice(IrAnalyze *ira, IrInstSrcSlice *i
2636326363
2636426364 if (type_is_invalid(ptr_val->value->type))
2636526365 return ira->codegen->invalid_inst_gen;
26366
26366
2636726367 ir_build_assert_non_null(ira, &instruction->base.base, ptr_val);
2636826368 }
2636926369