Files
clang-p2996/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
Arseniy Zaostrovnykh d172b65ef0 [analyzer] Fix crash in MoveChecker when it tries to report duplicate issue
The 'MoveChecker' was missing the check if the error node was
successfully generated (non-null value was returned). This happens
if duplicate of the report is emitted.

This patch contains NFC, where 'reportBug' is renamed to 'tryReportBug',
to better indicate conditional behavior of function.

Author: Arseniy Zaostrovnykh <arseniy.zaostrovnykh@sonarsource.com>

Reviewed By: xazax.hun

Differential Revision: https://reviews.llvm.org/D155084
2023-07-13 10:19:40 +02:00

27 KiB