File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ class SROA {
252252 std::pair<bool /* Changed*/ , bool /* CFGChanged*/ > runOnAlloca (AllocaInst &AI);
253253 void clobberUse (Use &U);
254254 bool deleteDeadInstructions (SmallPtrSetImpl<AllocaInst *> &DeletedAllocas);
255- bool promoteAllocas (Function &F );
255+ bool promoteAllocas ();
256256};
257257
258258} // end anonymous namespace
@@ -5693,7 +5693,7 @@ bool SROA::deleteDeadInstructions(
56935693// / This attempts to promote whatever allocas have been identified as viable in
56945694// / the PromotableAllocas list. If that list is empty, there is nothing to do.
56955695// / This function returns whether any promotion occurred.
5696- bool SROA::promoteAllocas (Function &F ) {
5696+ bool SROA::promoteAllocas () {
56975697 if (PromotableAllocas.empty ())
56985698 return false ;
56995699
@@ -5750,7 +5750,7 @@ std::pair<bool /*Changed*/, bool /*CFGChanged*/> SROA::runSROA(Function &F) {
57505750 }
57515751 }
57525752
5753- Changed |= promoteAllocas (F );
5753+ Changed |= promoteAllocas ();
57545754
57555755 Worklist = PostPromotionWorklist;
57565756 PostPromotionWorklist.clear ();
You can’t perform that action at this time.
0 commit comments