Skip to content

Commit

Permalink
Fix unused variable warning in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfh committed Nov 12, 2020
1 parent f72d350 commit 76b6cb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Transforms/Coroutines/CoroSplit.cpp
Expand Up @@ -685,6 +685,7 @@ Value *CoroCloner::deriveNewFramePointer() {
InlineFunctionInfo InlineInfo;
auto InlineRes = InlineFunction(*CallerContext, InlineInfo);
assert(InlineRes.isSuccess());
(void)InlineRes;
return Builder.CreateBitCast(FramePtrAddr, FramePtrTy);
}
// In continuation-lowering, the argument is the opaque storage.
Expand Down Expand Up @@ -1460,6 +1461,7 @@ static void splitAsyncCoroutine(Function &F, coro::Shape &Shape,
InlineFunctionInfo FnInfo;
auto InlineRes = InlineFunction(*TailCall, FnInfo);
assert(InlineRes.isSuccess() && "Expected inlining to succeed");
(void)InlineRes;
Builder.CreateRetVoid();

// Replace the lvm.coro.async.resume intrisic call.
Expand Down

0 comments on commit 76b6cb5

Please sign in to comment.