summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-07 06:52:53 +0000
committerChris Lattner <sabre@nondot.org>2008-04-07 06:52:53 +0000
commit7460fd297dc401697f28fd540513331ff22f1345 (patch)
tree2831e714d24442d276cfd5e80c79d3b2423060e4 /clang/lib/Sema/SemaExpr.cpp
parent49af6a4bebb6e0891980c75cd21336a4473844b3 (diff)
downloadbcm5719-llvm-7460fd297dc401697f28fd540513331ff22f1345.tar.gz
bcm5719-llvm-7460fd297dc401697f28fd540513331ff22f1345.zip
simplify reference handling.
llvm-svn: 49325
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index f0f05006f37..f4ef2839855 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -1179,7 +1179,7 @@ Sema::CheckAssignmentConstraints(QualType lhsType, QualType rhsType) {
return Compatible; // Common case: fast path an exact match.
if (lhsType->isReferenceType() || rhsType->isReferenceType()) {
- if (Context.referenceTypesAreCompatible(lhsType, rhsType))
+ if (Context.typesAreCompatible(lhsType, rhsType))
return Compatible;
return Incompatible;
}
OpenPOWER on IntegriCloud