C++: Fix another multiple parents problem.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-05 18:07:53 +01:00
parent 955f9c735c
commit 54e4103e71

View File

@@ -411,6 +411,14 @@ class TranslatedLoad extends TranslatedValueCategoryAdjustment, TTranslatedLoad
result = this.getOperand().getResult()
)
}
override predicate handlesDestructorsExplicitly() {
// The class that generates IR for `e` will (implicitly or explicitly)
// handle the generation of destructor calls for `e`. Without disabling
// destructor call generation here the destructor will get multiple
// parents.
any()
}
}
/**