Commit d9bf79f4 authored by Hideto Ueno's avatar Hideto Ueno
Browse files

[Attributor][FIX] Add a missing dependence track in noalias deduction

parent ba5500f2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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<AANoCapture>(*this, VIRP, /* TrackDependence */ false);