File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1011,7 +1011,7 @@ struct ExternalAAWrapperPass : ImmutablePass {
10111011
10121012 ExternalAAWrapperPass ();
10131013
1014- explicit ExternalAAWrapperPass (CallbackT CB);
1014+ explicit ExternalAAWrapperPass (CallbackT CB, bool RunEarly = false );
10151015
10161016 // / Flag indicating whether this external AA should run before Basic AA.
10171017 // /
Original file line number Diff line number Diff line change @@ -693,8 +693,8 @@ AnalysisKey AAManager::Key;
693693
694694ExternalAAWrapperPass::ExternalAAWrapperPass () : ImmutablePass(ID) {}
695695
696- ExternalAAWrapperPass::ExternalAAWrapperPass (CallbackT CB)
697- : ImmutablePass(ID), CB(std::move(CB)) {}
696+ ExternalAAWrapperPass::ExternalAAWrapperPass (CallbackT CB, bool RunEarly )
697+ : ImmutablePass(ID), CB(std::move(CB)), RunEarly(RunEarly) {}
698698
699699char ExternalAAWrapperPass::ID = 0 ;
700700
Original file line number Diff line number Diff line change @@ -91,13 +91,13 @@ class NVPTXExternalAAWrapper : public ExternalAAWrapperPass {
9191 static char ID;
9292
9393 NVPTXExternalAAWrapper ()
94- : ExternalAAWrapperPass([](Pass &P, Function &, AAResults &AAR) {
95- if ( auto *WrapperPass =
96- P. getAnalysisIfAvailable <NVPTXAAWrapperPass>())
97- AAR. addAAResult (WrapperPass-> getResult ());
98- }) {
99- RunEarly = true ;
100- }
94+ : ExternalAAWrapperPass(
95+ [](Pass &P, Function &, AAResults &AAR) {
96+ if ( auto *WrapperPass =
97+ P. getAnalysisIfAvailable <NVPTXAAWrapperPass> ())
98+ AAR. addAAResult (WrapperPass-> getResult ());
99+ },
100+ /* RunEarly= */ true ) { }
101101
102102 StringRef getPassName () const override {
103103 return " NVPTX Address space based Alias Analysis Wrapper" ;
You can’t perform that action at this time.
0 commit comments