Skip to content

Commit d48b807

Browse files
committed
[Coroutines] Fix -Wunused-variable in CoroFrame.cpp (NFC)
/llvm-project/llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1124:15: error: unused variable 'PromiseAlloca' [-Werror,-Wunused-variable] AllocaInst *PromiseAlloca = Shape.getPromiseAlloca(); ^ 1 error generated.
1 parent 472c79c commit d48b807

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Coroutines/CoroFrame.cpp

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

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

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

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

0 commit comments

Comments
 (0)