Fix copy/move ctor check

Change-Id: I2993d5809204098e29a7560d666fa1aafb024a89
This commit is contained in:
Stephan Bergmann
2017-02-02 11:49:20 +01:00
parent 37b7a86510
commit 6abbbe7015

View File

@@ -67,7 +67,7 @@ bool hasOverloads(FunctionDecl const * decl, unsigned arguments) {
&& f->getNumParams() >= arguments)
{
auto consDecl = dyn_cast<CXXConstructorDecl>(f);
if (consDecl && consDecl->isCopyConstructor()) {
if (consDecl && consDecl->isCopyOrMoveConstructor()) {
continue;
}
++n;