[Util] Fix an assert getting reached for certain nested loops in HoistIntoGlobals
#19576
+35
−13
Loading