Fix unused variable warning in release builds
This commit is contained in:
parent
f72d350bfb
commit
76b6cb515b
|
|
@ -685,6 +685,7 @@ Value *CoroCloner::deriveNewFramePointer() {
|
||||||
InlineFunctionInfo InlineInfo;
|
InlineFunctionInfo InlineInfo;
|
||||||
auto InlineRes = InlineFunction(*CallerContext, InlineInfo);
|
auto InlineRes = InlineFunction(*CallerContext, InlineInfo);
|
||||||
assert(InlineRes.isSuccess());
|
assert(InlineRes.isSuccess());
|
||||||
|
(void)InlineRes;
|
||||||
return Builder.CreateBitCast(FramePtrAddr, FramePtrTy);
|
return Builder.CreateBitCast(FramePtrAddr, FramePtrTy);
|
||||||
}
|
}
|
||||||
// In continuation-lowering, the argument is the opaque storage.
|
// In continuation-lowering, the argument is the opaque storage.
|
||||||
|
|
@ -1460,6 +1461,7 @@ static void splitAsyncCoroutine(Function &F, coro::Shape &Shape,
|
||||||
InlineFunctionInfo FnInfo;
|
InlineFunctionInfo FnInfo;
|
||||||
auto InlineRes = InlineFunction(*TailCall, FnInfo);
|
auto InlineRes = InlineFunction(*TailCall, FnInfo);
|
||||||
assert(InlineRes.isSuccess() && "Expected inlining to succeed");
|
assert(InlineRes.isSuccess() && "Expected inlining to succeed");
|
||||||
|
(void)InlineRes;
|
||||||
Builder.CreateRetVoid();
|
Builder.CreateRetVoid();
|
||||||
|
|
||||||
// Replace the lvm.coro.async.resume intrisic call.
|
// Replace the lvm.coro.async.resume intrisic call.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue