`Instruction::TestEmulation` takes a `Stream *` and checks it for validity. However, this is unnecessary as we can always ensure that we never pass `nullptr` for the `Stream` argument. The only use of `Instruction::TestEmulation` currently is `SBInstruction::TestEmulation` which gets the `Stream` from an `SBStream`, and `SBStream::ref` can return a `Stream &` guaranteed. Differential Revision: https://reviews.llvm.org/D154757
460 KiB
460 KiB