[llvm] [Coroutines] Remove assert about a promise being present (PR #156007)

Tobias Gysi via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 29 05:08:27 PDT 2025


================
@@ -700,9 +700,6 @@ static void buildFrameDebugInfo(Function &F, coro::Shape &Shape,
 
   DIBuilder DBuilder(*F.getParent(), /*AllowUnresolved*/ false);
 
-  assert(Shape.getPromiseAlloca() &&
-         "Coroutine with switch ABI should own Promise alloca");
-
----------------
gysit wrote:

Looking at the last commit that touched the assert it seems this is probably a leftover from a refactoring that removed the logic to get the debug information from a debug declare (record/intrinsic). 

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


More information about the llvm-commits mailing list