We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7734344 + 3f1a3c7 commit d37c83bCopy full SHA for d37c83b
lib/LLVMPasses/LLVMARCOpts.cpp
@@ -649,9 +649,12 @@ static DtorKind analyzeDestructor(Value *P) {
649
break;
650
}
651
652
- // Okay, the function has some side effects, if it doesn't capture the
653
- // object argument, at least that is something.
654
- return DtorFn->doesNotCapture(0) ? DtorKind::NoEscape : DtorKind::Unknown;
+ // Okay, the function has some side effects.
+ //
+ // TODO: We could in the future return more accurate information by
655
+ // checking if the function is able to capture the deinit parameter. We do
656
+ // not do that today.
657
+ return DtorKind::Unknown;
658
659
660
0 commit comments