[all-commits] [llvm/llvm-project] 23bfc2: [clang][dataflow] Use `ignoreCFGOmittedNodes()` in...

martinboehme via All-commits all-commits at lists.llvm.org
Tue Jan 16 06:48:56 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23bfc271a316345459809427d98e942455d0e2b6
      https://github.com/llvm/llvm-project/commit/23bfc271a316345459809427d98e942455d0e2b6
  Author: martinboehme <mboehme at google.com>
  Date:   2024-01-16 (Tue, 16 Jan 2024)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
    M clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp

  Log Message:
  -----------
  [clang][dataflow] Use `ignoreCFGOmittedNodes()` in `setValue()`. (#78245)

This is to be consistent with `getValue()`, which also uses
`ignoreCFGOmittedNodes()`.

Before this fix, it was not possible to retrieve a `Value` from a "CFG
omitted"
node that had previously been set using `setValue()`; see the
accompanying test,
which fails without the fix.

I discovered this issue while running internal integration tests on
https://github.com/llvm/llvm-project/pull/78127.




More information about the All-commits mailing list