From: Gor Nishanov Date: Sat, 6 Aug 2016 21:11:10 +0000 (+0000) Subject: CoroSplit: Squash unused variable FnTrigger warning in NDEBUG X-Git-Tag: llvmorg-4.0.0-rc1~13130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28c889593a283892639008b887d9e35fe19b87eb;p=platform%2Fupstream%2Fllvm.git CoroSplit: Squash unused variable FnTrigger warning in NDEBUG llvm-svn: 277938 --- diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp index 570063d..c356f60 100644 --- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp +++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp @@ -31,8 +31,10 @@ using namespace llvm; // split. static void prepareForSplit(Function &F, CallGraph &CG) { Module &M = *F.getParent(); +#ifndef NDEBUG Function *DevirtFn = M.getFunction(CORO_DEVIRT_TRIGGER_FN); assert(DevirtFn && "coro.devirt.trigger function not found"); +#endif F.addFnAttr(CORO_PRESPLIT_ATTR, PREPARED_FOR_SPLIT);