Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. diff --git a/src/ir.cpp b/src/ir.cpp
  2. index 65a21a418..271c6b59d 100644
  3. --- a/src/ir.cpp
  4. +++ b/src/ir.cpp
  5. @@ -25445,7 +25445,7 @@ static IrInstruction *ir_analyze_instruction_bit_cast_src(IrAnalyze *ira, IrInst
  6.  
  7. IrInstruction *result_loc = ir_resolve_result(ira, &instruction->base,
  8. &instruction->result_loc_bit_cast->base, operand->value.type, operand, false, false, true);
  9. - if (result_loc != nullptr && (type_is_invalid(result_loc->value.type) || instr_is_unreachable(result_loc)))
  10. + if (result_loc != nullptr && !(type_is_invalid(result_loc->value.type) || instr_is_unreachable(result_loc)))
  11. return result_loc;
  12.  
  13. return instruction->result_loc_bit_cast->parent->gen_instruction;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement