summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-11-02 22:53:43 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-11-02 22:53:43 +0000
commit10317eaa28a2d20a8cc76db9aa80eea7b4345800 (patch)
treea6bda2e7b468218058a12620be60e119c9436cca /clang/lib/Sema
parent9929c423a17f58a35276192f2b47a6d8b85fed2c (diff)
downloadbcm5719-llvm-10317eaa28a2d20a8cc76db9aa80eea7b4345800.tar.gz
bcm5719-llvm-10317eaa28a2d20a8cc76db9aa80eea7b4345800.zip
back out changes in r143399 and r143475.
rvale-references are captured by reference in blocks. // rdar://9971124. llvm-svn: 143583
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index d4d08703d3a..febd394eb33 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud