@@ -812,33 +812,33 @@ static SILValue tryRewriteToPartialApplyStack(
812812 if (!lookThroughMarkDependenceChainForValue (mark, newPA) ||
813813 mark->getBase () != stack) {
814814 LLVM_DEBUG (llvm::dbgs () << " -- had unexpected mark_dependence use\n " ;
815- use->getUser ()->print (llvm::dbgs ());
816- llvm::dbgs () << " \n " );
815+ use->getUser ()->print (llvm::dbgs ()); llvm::dbgs () << " \n " );
817816 initialization = nullptr ;
818817 break ;
819818 }
820819 markDep = mark;
821820
822821 continue ;
823822 }
824-
823+
825824 // If we saw more than just the initialization, this isn't a pattern we
826825 // recognize.
827826 if (initialization) {
828- LLVM_DEBUG (llvm::dbgs () << " -- had non-initialization, non-partial-apply use \n " ;
829- use-> getUser ()-> print ( llvm::dbgs ()) ;
830- llvm::dbgs () << " \n " );
831-
827+ LLVM_DEBUG (llvm::dbgs ()
828+ << " -- had non-initialization, non-partial-apply use \n " ;
829+ use-> getUser ()-> print ( llvm::dbgs ()); llvm::dbgs () << " \n " );
830+
832831 initialization = nullptr ;
833832 break ;
834833 }
835834 if (auto possibleInit = dyn_cast<CopyAddrInst>(use->getUser ())) {
836835 // Should copy the source and initialize the destination.
837- if (possibleInit->isTakeOfSrc ()
838- || !possibleInit->isInitializationOfDest ()) {
839- LLVM_DEBUG (llvm::dbgs () << " -- had non-initialization, non-partial-apply use\n " ;
840- use->getUser ()->print (llvm::dbgs ());
841- llvm::dbgs () << " \n " );
836+ if (possibleInit->isTakeOfSrc () ||
837+ !possibleInit->isInitializationOfDest ()) {
838+ LLVM_DEBUG (
839+ llvm::dbgs ()
840+ << " -- had non-initialization, non-partial-apply use\n " ;
841+ use->getUser ()->print (llvm::dbgs ()); llvm::dbgs () << " \n " );
842842
843843 break ;
844844 }
@@ -887,14 +887,15 @@ static SILValue tryRewriteToPartialApplyStack(
887887 LLVM_DEBUG (llvm::dbgs () << " looking at use\n " ;
888888 origUse->getUser ()->printInContext (llvm::dbgs ());
889889 llvm::dbgs () << " \n " );
890-
890+
891891 // If the user doesn't write to memory, then it's harmless.
892892 if (!origUse->getUser ()->mayWriteToMemory ()) {
893893 return true ;
894894 }
895895 if (closureLiveness.isWithinBoundary (origUse->getUser ())) {
896896 origIsUnmodifiedDuringClosureLifetime = false ;
897- LLVM_DEBUG (llvm::dbgs () << " -- original has other possibly writing use during closure lifetime\n " ;
897+ LLVM_DEBUG (llvm::dbgs () << " -- original has other possibly writing "
898+ " use during closure lifetime\n " ;
898899 origUse->getUser ()->print (llvm::dbgs ());
899900 llvm::dbgs () << " \n " );
900901 return false ;
0 commit comments