aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-10 16:48:36 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-10 16:48:36 +0000
commit67b2c554dc12f589471713b7b01e9c94257ae593 (patch)
treefd4a62ca5822aebb32a602381c4d1e3b9dfe6d99 /lib
parentb555971345750350c21d541afe135054c7402933 (diff)
Add test from [expr.prim.lambda]p12, which deals with odr-use and
nested captures. We currently don't get odr-use correct in array bounds, so that bit is commented out while we sort out what we need to do. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaExpr.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index fc7f32ec6d..7be1a441c4 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -9345,9 +9345,6 @@ void Sema::PopExpressionEvaluationContext() {
ExprNeedsCleanups = Rec.ParentNeedsCleanups;
CleanupVarDeclMarking();
std::swap(MaybeODRUseExprs, Rec.SavedMaybeODRUseExprs);
-
- if (Rec.Context == Unevaluated) {
- }
// Otherwise, merge the contexts together.
} else {
ExprNeedsCleanups |= Rec.ParentNeedsCleanups;