Commit f1d2dac
committed
C++: Fix a bug where the destructor attached to a 'new' expression would
have multiple parents (the 'new' expression, the call to 'operator new',
and the size expression). This happens because the latter two are
'TranslatedExpr's that return the 'new' expression as their expression
even though they don't technically represent the translation of this
expression.
To prevent this bug we tell the IR construction that the latter two
handle their destructors explicitly which means that IR construction
doesn't try to synthesize them.1 parent b042366 commit f1d2dac
File tree
1 file changed
+14
-0
lines changed- cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2015 | 2015 | | |
2016 | 2016 | | |
2017 | 2017 | | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
2018 | 2025 | | |
2019 | 2026 | | |
2020 | 2027 | | |
| |||
2172 | 2179 | | |
2173 | 2180 | | |
2174 | 2181 | | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
2175 | 2189 | | |
2176 | 2190 | | |
2177 | 2191 | | |
| |||
0 commit comments