summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/weakobject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/weakobject.cxx')
-rw-r--r--compilerplugins/clang/weakobject.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/compilerplugins/clang/weakobject.cxx b/compilerplugins/clang/weakobject.cxx
index 9ccbb8ac3c86..889835051c10 100644
--- a/compilerplugins/clang/weakobject.cxx
+++ b/compilerplugins/clang/weakobject.cxx
@@ -57,7 +57,9 @@ public:
if (ignoreLocation(pMethodDecl)) {
return true;
}
- if (!pMethodDecl->isThisDeclarationADefinition()) {
+ if (!pMethodDecl->isThisDeclarationADefinition()
+ || pMethodDecl->isLateTemplateParsed())
+ {
return true;
}
if (!pMethodDecl->isInstance()) {