Add missing nullptr check
authorAdrian Prantl <aprantl@apple.com>
Tue, 17 Aug 2021 20:58:40 +0000 (13:58 -0700)
committerAdrian Prantl <aprantl@apple.com>
Tue, 17 Aug 2021 20:59:52 +0000 (13:59 -0700)
commit8ae5e0b154ae18a78f73c0aef58356002b8ff0d7
tree7e1fd27589cf6cfc4f17420d602f721d84cdc567
parente918ba69582bd71ccf706b7c0f103c0b09043f94
Add missing nullptr check

Unfortunatley the IR Verifier doesn't reject debug intrinsics that
have nullptr as arguments, so coro::salvageDebugInfo for now also
needs to deal with them.

rdar://81979541
llvm/lib/Transforms/Coroutines/CoroFrame.cpp
llvm/test/Transforms/Coroutines/coro-debug.ll