[llvm] 76b6cb5 - Fix unused variable warning in release builds
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 09:14:21 PST 2020
Author: Alexander Kornienko
Date: 2020-11-12T18:14:06+01:00
New Revision: 76b6cb515b2f385f8cdd3c41ecd31c78698f20b2
URL: https://github.com/llvm/llvm-project/commit/76b6cb515b2f385f8cdd3c41ecd31c78698f20b2
DIFF: https://github.com/llvm/llvm-project/commit/76b6cb515b2f385f8cdd3c41ecd31c78698f20b2.diff
LOG: Fix unused variable warning in release builds
Added:
Modified:
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index fd1f074921fb..ddc7bc7752d9 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.
More information about the llvm-commits
mailing list