[clang] [analyzer] Fix false positive on `UnreachableCode` with CTU mode (PR #219225)
Arseniy Zaostrovnykh via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 28 02:04:24 PDT 2026
================
@@ -161,6 +161,7 @@ bool CoreEngine::ExecuteWorkList(const StackFrame *SF, unsigned MaxSteps,
return MaxSteps - Steps;
};
const unsigned STUSteps = ProcessWList(MaxSteps);
+ STUHadWorkRemaining = WList->hasWork();
----------------
necto wrote:
Ideally, we would keep the remaining STU work at the end of the CTU work list, to continue STU exploration if CTU turns out fruitless. However, that would be a significantly more complex and risky change.
However, if it ever get's done, it is important to not forget about this shortcut. Would it make sense to move it right next to where the STU remaining work gets discarded (l.173)?
https://github.com/llvm/llvm-project/pull/219225
More information about the cfe-commits
mailing list