[PATCH] D99344: [Analyzer] Track RValue expressions

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 30 01:44:41 PDT 2021


steakhal added inline comments.


================
Comment at: clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:1958-1959
+                           EnableNullFPSuppression);
+  } else { // Track only the LHS of divisions.
+    if (LHSV.isZeroConstant())
+      trackExpressionValue(InputNode, BO->getLHS(), report, TKind,
----------------
Both divisions and modulo operations can flow here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99344/new/

https://reviews.llvm.org/D99344



More information about the cfe-commits mailing list