aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-10-22 00:38:21 +0000
committerDouglas Gregor <dgregor@apple.com>2008-10-22 00:38:21 +0000
commit9b6e2d209cc2931a9bb2ae51e744a8698b54db73 (patch)
tree4c0bbb55b03e830903ef190041c4fc635d5a0756 /lib/Sema/SemaOverload.cpp
parentae8d467e75a4e72b19e1eca199bf93dfaab47acf (diff)
Fix a thinko in the qualification-conversion check when the qualificaitons are disjoint, and add some overloading-based tests of qualification conversions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r--lib/Sema/SemaOverload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp
index 2696c98523..6d01709c5b 100644
--- a/lib/Sema/SemaOverload.cpp
+++ b/lib/Sema/SemaOverload.cpp
@@ -685,7 +685,7 @@ Sema::IsQualificationConversion(QualType FromType, QualType ToType)
// -- for every j > 0, if const is in cv 1,j then const is in cv
// 2,j, and similarly for volatile.
- if (FromType.isMoreQualifiedThan(ToType))
+ if (!ToType.isAtLeastAsQualifiedAs(FromType))
return false;
// -- if the cv 1,j and cv 2,j are different, then const is in