aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-10-13 10:03:02 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-10-13 15:45:04 -0700
commit8d03a972ce8e92815ffe3d5d86aa027605ed92e2 (patch)
tree051415edbcfde4f762191c2e79beb975b5d58b5d /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
parentb49787df9a535f03761c340dca7ec3ec1155133d (diff)
downloadllvm-8d03a972ce8e92815ffe3d5d86aa027605ed92e2.zip
llvm-8d03a972ce8e92815ffe3d5d86aa027605ed92e2.tar.gz
llvm-8d03a972ce8e92815ffe3d5d86aa027605ed92e2.tar.bz2
PR47805: Use a single object for a function parameter in the caller and
callee in constant evaluation. We previously made a deep copy of function parameters of class type when passing them, resulting in the destructor for the parameter applying to the original argument value, ignoring any modifications made in the function body. This also meant that the 'this' pointer of the function parameter could be observed changing between the caller and the callee. This change completely reimplements how we model function parameters during constant evaluation. We now model them roughly as if they were variables living in the caller, albeit with an artificially reduced scope that covers only the duration of the function call, instead of modeling them as temporaries in the caller that we partially "reparent" into the callee at the point of the call. This brings some minor diagnostic improvements, as well as significantly reduced stack usage during constant evaluation.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions