diff --git a/lib/Transforms/IPO/Attributor.cpp b/lib/Transforms/IPO/Attributor.cpp index d0bd1cc6692..0cecfd4461d 100644 --- a/lib/Transforms/IPO/Attributor.cpp +++ b/lib/Transforms/IPO/Attributor.cpp @@ -2812,6 +2812,8 @@ struct AANoAliasCallSiteArgument final : AANoAliasImpl { return false; } + A.recordDependence(NoAliasAA, *this, DepClassTy::OPTIONAL); + const IRPosition &VIRP = IRPosition::value(getAssociatedValue()); auto &NoCaptureAA = A.getAAFor(*this, VIRP, /* TrackDependence */ false);