r189859 - Reference extension is weird/surprising and unnecessary, let's not do that.
David Blaikie
dblaikie at gmail.com
Tue Sep 3 14:40:15 PDT 2013
Author: dblaikie
Date: Tue Sep 3 16:40:15 2013
New Revision: 189859
URL: http://llvm.org/viewvc/llvm-project?rev=189859&view=rev
Log:
Reference extension is weird/surprising and unnecessary, let's not do that.
Found by Chris Wailes
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=189859&r1=189858&r2=189859&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Tue Sep 3 16:40:15 2013
@@ -10236,7 +10236,7 @@ ExprResult Sema::ActOnBlockStmtExpr(Sour
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
More information about the cfe-commits
mailing list