[clang][dataflow] Don't crash if copy constructor arg doesn't have a storage location.
authorMartin Braenne <mboehme@google.com>
Wed, 28 Jun 2023 09:16:09 +0000 (09:16 +0000)
committerMartin Braenne <mboehme@google.com>
Wed, 28 Jun 2023 11:15:52 +0000 (11:15 +0000)
commitabc8367413ff377b79e9743ca85252f209f81d65
treee49a12b1ef5d58ad3133c750020f539d044f27a2
parent0e17174d40b2d25a755d2ce9acf7c905f254746d
[clang][dataflow] Don't crash if copy constructor arg doesn't have a storage location.

I accidentally used `cast` instead of `cast_or_null`.

Reviewed By: sammccall, xazax.hun

Differential Revision: https://reviews.llvm.org/D153956
clang/lib/Analysis/FlowSensitive/Transfer.cpp
clang/unittests/Analysis/FlowSensitive/TransferTest.cpp