CoroSplit: Squash unused variable FnTrigger warning in NDEBUG

llvm-svn: 277938
This commit is contained in:
Gor Nishanov 2016-08-06 21:11:10 +00:00
parent 874651129e
commit 28c889593a
1 changed files with 2 additions and 0 deletions

View File

@ -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);