Skip to content

Commit 4361911

Browse files
gribozavrcjdb
authored andcommitted
Revert "[Coroutines] Fix -Wunused-variable in CoroFrame.cpp (NFC)"
This reverts commit d48b807. This series of commits causes Clang crashes. The reproducer is posted on llvm@08a0dec
1 parent e2e54d3 commit 4361911

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Coroutines/CoroFrame.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,8 @@ static void buildFrameDebugInfo(Function &F, coro::Shape &Shape,
11211121

11221122
DIBuilder DBuilder(*F.getParent(), /*AllowUnresolved*/ false);
11231123

1124-
assert(Shape.getPromiseAlloca() &&
1124+
AllocaInst *PromiseAlloca = Shape.getPromiseAlloca();
1125+
assert(PromiseAlloca &&
11251126
"Coroutine with switch ABI should own Promise alloca");
11261127

11271128
DIFile *DFile = DIS->getFile();

0 commit comments

Comments
 (0)