Reference extension is weird/surprising and unnecessary, let's not do that.
Found by Chris Wailes llvm-svn: 189859
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user