[llvm] [RemoveDIs] Update Coroutine passes to handle DPValues (PR #74480)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 02:52:50 PST 2023


================
@@ -726,11 +726,14 @@ static void replaceSwiftErrorOps(Function &F, coro::Shape &Shape,
 
 /// Returns all DbgVariableIntrinsic in F.
 static SmallVector<DbgVariableIntrinsic *, 8>
-collectDbgVariableIntrinsics(Function &F) {
+collectDbgVariableIntrinsics(Function &F, SmallVector<DPValue *> &DPValues) {
----------------
OCHyams wrote:

SGTM. I think it'd be cleaner to have two separate functions, but that'd make it easier to accidentally ignore DPValues, so I've gone with the slightly more cumbersome returned pair.

https://github.com/llvm/llvm-project/pull/74480


More information about the llvm-commits mailing list