summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authormartinboehme <mboehme@google.com>2024-05-06 08:15:12 +0200
committerGitHub <noreply@github.com>2024-05-06 08:15:12 +0200
commit0348e71885ee8c07e1ae789059ff6d3c9ffce596 (patch)
tree91a43b1d99f46d8e95b8b8ec1e9389026c2a635b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentd70267fbae228990c47b5bdbce7aa659e8b5146e (diff)
[clang][dataflow] Fix crash when `operator=` result type is not destination type. (#90898)
The existing code was full of comments about how we assume this is always the case, but it's not mandated by the standard, and there is code out there that returns a different type. So check that the result type is in fact the same as the destination type before attempting to copy to the result. To make sure that we don't bail out in more cases than intended, I've extended existing tests to verify that in the common case, we do return the destination object (by reference or value, as the case may be).
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions