summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikuroXina <ryosukadnak@gmail.com>2021-10-25 22:50:27 +0900
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-10-27 19:22:15 +0200
commitf21f6f322f92b3c3739ff97ab2bcb98030addebf (patch)
treef68ab61e0b60d0ada9ca3c5bc0c00b2a15405dd0 /src
parent74115f4f01b5a97830075244bcb7351e5c468ccd (diff)
Bring back comment
Diffstat (limited to 'src')
-rw-r--r--src/ir/analysis/has_destructor.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ir/analysis/has_destructor.rs b/src/ir/analysis/has_destructor.rs
index fe95b516..74fd73d1 100644
--- a/src/ir/analysis/has_destructor.rs
+++ b/src/ir/analysis/has_destructor.rs
@@ -41,6 +41,8 @@ pub struct HasDestructorAnalysis<'ctx> {
impl<'ctx> HasDestructorAnalysis<'ctx> {
fn consider_edge(kind: EdgeKind) -> bool {
+ // These are the only edges that can affect whether a type has a
+ // destructor or not.
matches!(
kind,
EdgeKind::TypeReference |