forked from OSchip/llvm-project
Reference extension is weird/surprising and unnecessary, let's not do that.
Found by Chris Wailes llvm-svn: 189859
This commit is contained in:
parent
5d78dba6d9
commit
43472b3d18
|
@ -10236,7 +10236,7 @@ ExprResult Sema::ActOnBlockStmtExpr(SourceLocation CaretLoc,
|
|||
computeNRVO(Body, getCurBlock());
|
||||
|
||||
BlockExpr *Result = new (Context) BlockExpr(BSI->TheDecl, BlockTy);
|
||||
const AnalysisBasedWarnings::Policy &WP = AnalysisWarnings.getDefaultPolicy();
|
||||
AnalysisBasedWarnings::Policy WP = AnalysisWarnings.getDefaultPolicy();
|
||||
PopFunctionScopeInfo(&WP, Result->getBlockDecl(), Result);
|
||||
|
||||
// If the block isn't obviously global, i.e. it captures anything at
|
||||
|
|
Loading…
Reference in New Issue