diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-02-03 19:36:07 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-02-03 19:36:07 +0000 |
commit | 22c92406f4b043bd872b53761f6a157fcc105594 (patch) | |
tree | 0f53b640644cad9805800f3a2cbd64ce5a5a3e6c /lib/Sema/SemaOverload.cpp | |
parent | b0f8eacfdcd0d43f51e669f2d723992d4af9f746 (diff) |
Top-level const changes do not make a qualification conversion. Fixes PR6089.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index d1d9bda93e..1319f337a6 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -1421,7 +1421,7 @@ Sema::IsQualificationConversion(QualType FromType, QualType ToType) { // If FromType and ToType are the same type, this is not a // qualification conversion. - if (FromType == ToType) + if (FromType.getUnqualifiedType() == ToType.getUnqualifiedType()) return false; // (C++ 4.4p4): |