<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/Analysis/dtor-array.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[analyzer] Fix crash for array-delete of UnknownVal values.</title>
<updated>2022-11-09T14:06:46+00:00</updated>
<author>
<name>Tomasz Kamiński</name>
<email>tomasz.kamiński@sonarsource.com</email>
</author>
<published>2022-11-09T13:31:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2fb3bec932ede7704724abb71e8270e0b4c201f6'/>
<id>2fb3bec932ede7704724abb71e8270e0b4c201f6</id>
<content type='text'>
We now skip the destruction of array elements for `delete[] p`,
if the value of `p` is UnknownVal and does not have corresponding region.
This eliminate the crash in `getDynamicElementCount` on that
region and matches the behavior for deleting the array of
non-constant range.

Reviewed By: isuckatcs

Differential Revision: https://reviews.llvm.org/D136671
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We now skip the destruction of array elements for `delete[] p`,
if the value of `p` is UnknownVal and does not have corresponding region.
This eliminate the crash in `getDynamicElementCount` on that
region and matches the behavior for deleting the array of
non-constant range.

Reviewed By: isuckatcs

Differential Revision: https://reviews.llvm.org/D136671
</pre>
</div>
</content>
</entry>
<entry>
<title>[analyzer] Fix for incorrect handling of 0 length non-POD array construction</title>
<updated>2022-08-25T10:42:02+00:00</updated>
<author>
<name>isuckatcs</name>
<email>65320245+isuckatcs@users.noreply.github.com</email>
</author>
<published>2022-08-22T12:43:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e3e9082b013ba948e3df6d4a2536df9d04656e76'/>
<id>e3e9082b013ba948e3df6d4a2536df9d04656e76</id>
<content type='text'>
Prior to this patch when the analyzer encountered a non-POD 0 length array,
it still invoked the constructor for 1 element, which lead to false positives.
This patch makes sure that we no longer construct any elements when we see a
0 length array.

Differential Revision: https://reviews.llvm.org/D131501
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prior to this patch when the analyzer encountered a non-POD 0 length array,
it still invoked the constructor for 1 element, which lead to false positives.
This patch makes sure that we no longer construct any elements when we see a
0 length array.

Differential Revision: https://reviews.llvm.org/D131501
</pre>
</div>
</content>
</entry>
<entry>
<title>[analyzer] Process non-POD array element destructors</title>
<updated>2022-08-23T23:28:21+00:00</updated>
<author>
<name>isuckatcs</name>
<email>65320245+isuckatcs@users.noreply.github.com</email>
</author>
<published>2022-07-29T00:14:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=aac73a31add5e80c746a7794d832f2cdf226486c'/>
<id>aac73a31add5e80c746a7794d832f2cdf226486c</id>
<content type='text'>
The constructors of non-POD array elements are evaluated under
certain conditions. This patch makes sure that in such cases
we also evaluate the destructors.

Differential Revision: https://reviews.llvm.org/D130737
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The constructors of non-POD array elements are evaluated under
certain conditions. This patch makes sure that in such cases
we also evaluate the destructors.

Differential Revision: https://reviews.llvm.org/D130737
</pre>
</div>
</content>
</entry>
</feed>
