swift
f5acc07b - [move-only] Fix crash due to an earlier change I made to move end_borrow out of addressUseChecker and into the liveness checker.

Commit
2 years ago
[move-only] Fix crash due to an earlier change I made to move end_borrow out of addressUseChecker and into the liveness checker. This just makes sure that we won't crash on it and emit a proper message. I think we should improve the message, but this at least gives a proper error. rdar://106340382
Author
Committer
Parents
  • lib/SILOptimizer/Mandatory
    • File
      MoveOnlyAddressCheckerUtils.cpp
  • test/SILOptimizer
    • moveonly_addresschecker_diagnostics.sil
    • File
      moveonly_addresschecker_diagnostics.swift