[all-commits] [llvm/llvm-project] 6b573f: [clang][dataflow] Fix assert-fail when calling ass...
martinboehme via All-commits
all-commits at lists.llvm.org
Tue Nov 7 00:48:55 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6b573f4611df470c23c7048fe820e0f216e9a8e1
https://github.com/llvm/llvm-project/commit/6b573f4611df470c23c7048fe820e0f216e9a8e1
Author: martinboehme <mboehme at google.com>
Date: 2023-11-07 (Tue, 07 Nov 2023)
Changed paths:
M clang/lib/Analysis/FlowSensitive/Transfer.cpp
M clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
Log Message:
-----------
[clang][dataflow] Fix assert-fail when calling assignment operator with by-value parameter. (#71384)
The code assumed that the source parameter of an assignment operator is
always
passed by reference, but it is legal for it to be passed by value.
This patch includes a test that assert-fails without the fix.
More information about the All-commits
mailing list