diff options
author | Arseniy Zaostrovnykh <arseniy.zaostrovnykh@sonarsource.com> | 2023-01-26 17:19:04 +0100 |
---|---|---|
committer | Balazs Benics <benicsbalazs@gmail.com> | 2023-01-26 17:26:05 +0100 |
commit | 98d55095d85129c2776a9d7a227c5f88e3ce2e01 (patch) | |
tree | 98c00429ce1dd4afaa2cd6455e3cc03845435a9a /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | d4f4b2fe21dddff023aeab775dd63b321e23f918 (diff) | |
download | llvm-98d55095d85129c2776a9d7a227c5f88e3ce2e01.zip llvm-98d55095d85129c2776a9d7a227c5f88e3ce2e01.tar.gz llvm-98d55095d85129c2776a9d7a227c5f88e3ce2e01.tar.bz2 |
Fix assertion failure "PathDiagnosticSpotPiece's must have a valid location." in ReturnPtrRange checker on builtin functions
Builtin functions (such as `std::move`, `std::forward`, `std::as_const`)
have a body generated during the analysis not related to any source file
so their statements have no valid source locations.
`ReturnPtrRange` checker should not report issues for these builtin
functions because they only forward its parameter and do not create any
new pointers.
Fixes #55347
Patch by Arseniy Zaostrovnykh.
Reviewed By: NoQ
Differential Revision: https://reviews.llvm.org/D138713
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions