forked from OSchip/llvm-project
Fix unused variable in SemaCoroutine.cpp
llvm-svn: 297105
This commit is contained in:
parent
b677688546
commit
2debda2306
|
@ -326,7 +326,6 @@ static FunctionScopeInfo *checkCoroutineContext(Sema &S, SourceLocation Loc,
|
|||
return nullptr;
|
||||
|
||||
assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope");
|
||||
auto *FD = cast<FunctionDecl>(S.CurContext);
|
||||
|
||||
auto *ScopeInfo = S.getCurFunction();
|
||||
assert(ScopeInfo && "missing function scope for function");
|
||||
|
|
Loading…
Reference in New Issue