From: Alexander Kornienko Date: Thu, 12 Nov 2020 17:14:06 +0000 (+0100) Subject: Fix unused variable warning in release builds X-Git-Tag: llvmorg-13-init~6277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76b6cb515b2f385f8cdd3c41ecd31c78698f20b2;p=platform%2Fupstream%2Fllvm.git Fix unused variable warning in release builds --- diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp index fd1f074..ddc7bc7 100644 --- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp +++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp @@ -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. @@ -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.