diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2010-02-08 18:54:05 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2010-02-08 18:54:05 +0000 |
| commit | 75cc359fdc062b1f484929c97d27a76167a47a33 (patch) | |
| tree | 718dde3d293082e378829b8c8324a55ad2345633 /clang/lib | |
| parent | eaabbd8b46c4b666b5f5b970b6e2f6d37138be74 (diff) | |
| download | bcm5719-llvm-75cc359fdc062b1f484929c97d27a76167a47a33.tar.gz bcm5719-llvm-75cc359fdc062b1f484929c97d27a76167a47a33.zip | |
Ensure that a operator delete overload is rocognized regardless of cv-quals.
llvm-svn: 95553
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/DeclCXX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclCXX.cpp b/clang/lib/AST/DeclCXX.cpp index 02ad36d4790..a519f78fc45 100644 --- a/clang/lib/AST/DeclCXX.cpp +++ b/clang/lib/AST/DeclCXX.cpp @@ -587,7 +587,8 @@ bool CXXMethodDecl::isUsualDeallocationFunction() const { // then this function is a usual deallocation function. ASTContext &Context = getASTContext(); if (getNumParams() != 2 || - !Context.hasSameType(getParamDecl(1)->getType(), Context.getSizeType())) + !Context.hasSameUnqualifiedType(getParamDecl(1)->getType(), + Context.getSizeType())) return false; // This function is a usual deallocation function if there are no |

