[all-commits] [llvm/llvm-project] 0f6cf5: [clang][dataflow] Bugfix for `refreshStructValue()`.

martinboehme via All-commits all-commits at lists.llvm.org
Mon Jul 17 11:56:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f6cf555674959d0b21769fc1c46e23584561f2a
      https://github.com/llvm/llvm-project/commit/0f6cf555674959d0b21769fc1c46e23584561f2a
  Author: Martin Braenne <mboehme at google.com>
  Date:   2023-07-17 (Mon, 17 Jul 2023)

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

  Log Message:
  -----------
  [clang][dataflow] Bugfix for `refreshStructValue()`.

In the case where the expression was not yet associated with a storage location, we created a new storage location but failed to associate it with the expression.

The newly added test fails without the fix.

Reviewed By: xazax.hun

Differential Revision: https://reviews.llvm.org/D155465




More information about the All-commits mailing list