diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-11-02 22:53:43 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-11-02 22:53:43 +0000 |
commit | c637d738897b1745af3bad7fc551f26b98da838c (patch) | |
tree | be57c8ba60d86cd3b341f5c680b5010d9d726b9c /lib/Sema/SemaExpr.cpp | |
parent | 3c24cab4076feb6f3f6bc260080f71f802400306 (diff) |
back out changes in r143399 and r143475.
rvale-references are captured by reference
in blocks. // rdar://9971124.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index d4d08703d3..febd394eb3 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -1305,9 +1305,6 @@ static CaptureResult shouldCaptureValueReference(Sema &S, SourceLocation loc, // Actually try to capture it. QualType type = var->getType(); - if (type->isRValueReferenceType()) - type = type->getPointeeType(); - // Prohibit variably-modified types. if (type->isVariablyModifiedType()) { S.Diag(loc, diag::err_ref_vm_type); |