[clang] [clang][dataflow] Fully support Environment construction for Stmt analysis. (PR #91616)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Fri May 10 10:06:22 PDT 2024


================
@@ -476,7 +476,7 @@ runTypeErasedDataflowAnalysis(
   PrettyStackTraceAnalysis CrashInfo(ACFG, "runTypeErasedDataflowAnalysis");
 
   std::optional<Environment> MaybeStartingEnv;
-  if (InitEnv.callStackSize() == 1) {
+  if (InitEnv.callStackSize() == 0) {
----------------
ymand wrote:

aside: this line now feels more "right" than the original version.

https://github.com/llvm/llvm-project/pull/91616


More information about the cfe-commits mailing list