[all-commits] [llvm/llvm-project] f3700b: [clang][dataflow] Account for global variables in ...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Thu Dec 22 06:36:47 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3700bdb7f00d4f2652a7bdc6a99130e8a1b3c59
https://github.com/llvm/llvm-project/commit/f3700bdb7f00d4f2652a7bdc6a99130e8a1b3c59
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-12-22 (Thu, 22 Dec 2022)
Changed paths:
M clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
M clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp
Log Message:
-----------
[clang][dataflow] Account for global variables in constructor initializers.
Previously, the analysis modeled global variables appearing in the _body_ of
any function (including constructors). But, that misses those appearing in
constructor _initializers_. This patch adds the initializers to the set of
expressions used to determine which globals to model.
Differential Revision: https://reviews.llvm.org/D140501
More information about the All-commits
mailing list