summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-16 17:45:54 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-16 17:45:54 +0000
commitadc7a704d2a385af08853596e5aaa9e2063fc2c9 (patch)
tree8d9bacfcbf16fa81d3418360f649a78f61b8f602 /clang/lib/Sema/SemaInit.cpp
parent659d7fc0032762ad3506ae6de3d7c04c8d508790 (diff)
downloadbcm5719-llvm-adc7a704d2a385af08853596e5aaa9e2063fc2c9.tar.gz
bcm5719-llvm-adc7a704d2a385af08853596e5aaa9e2063fc2c9.zip
Eliminate ForceRValue parameters from reference binding. Did I mention
that we aren't using ForceRValue any more? llvm-svn: 101496
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r--clang/lib/Sema/SemaInit.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index 1293e8d6c5e..848d25efd03 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -2391,15 +2391,11 @@ static void TryReferenceInitialization(Sema &S,
T2 = cv2T2.getUnqualifiedType();
}
- // FIXME: Rvalue references
- bool ForceRValue = false;
-
// Compute some basic properties of the types and the initializer.
bool isLValueRef = DestType->isLValueReferenceType();
bool isRValueRef = !isLValueRef;
bool DerivedToBase = false;
- Expr::isLvalueResult InitLvalue = ForceRValue ? Expr::LV_InvalidExpression :
- Initializer->isLvalue(S.Context);
+ Expr::isLvalueResult InitLvalue = Initializer->isLvalue(S.Context);
Sema::ReferenceCompareResult RefRelationship
= S.CompareReferenceRelationship(DeclLoc, cv1T1, cv2T2, DerivedToBase);
OpenPOWER on IntegriCloud