[all-commits] [llvm/llvm-project] 5c2da2: [clang][dataflow] fix assert in `Environment::getR...

Paul Semel via All-commits all-commits at lists.llvm.org
Wed Jan 31 08:18:28 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c2da289d2514e35708832fed41501d136cc3cb0
      https://github.com/llvm/llvm-project/commit/5c2da289d2514e35708832fed41501d136cc3cb0
  Author: Paul Semel <semelpaul at gmail.com>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M clang/lib/Analysis/FlowSensitive/Transfer.cpp
    M clang/unittests/Analysis/FlowSensitive/TransferTest.cpp

  Log Message:
  -----------
  [clang][dataflow] fix assert in `Environment::getResultObjectLocation` (#79608)

When calling `Environment::getResultObjectLocation` with a
CXXOperatorCallExpr that is a prvalue, we just hit an assert because no
record was ever created.

---------

Co-authored-by: martinboehme <mboehme at google.com>




More information about the All-commits mailing list