summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-21 14:43:01 +0200
committerNoel Grandin <noel@peralex.com>2015-07-21 14:43:01 +0200
commitf3872352b3e576530f9a5d27a6ab8b805d8ea911 (patch)
treee5911ad6d397e92e8b8fecabb2e44d6c7835b3d4 /compilerplugins
parent07645b443a276da2ee8853c84fbf61a59d59b4bd (diff)
fix my previous commit
Change-Id: I287d99a46eda90718a3c4ec2c92f7b063babeb24
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/unusedmethods.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index ad5582e3f36b..692e91e932bc 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -269,7 +269,7 @@ bool UnusedMethods::VisitVarDecl( const VarDecl* varDecl )
if (!recordDecl)
return true;
// workaround clang-3.5 issue
-#if __clang_major__ < 3 || __clang_major__ == 3 && __clang_minor__ < 6
+#if __clang_major__ > 3 || ( __clang_major__ == 3 && __clang_minor__ >= 6 )
if (!recordDecl->getTemplateInstantiationPattern())
return true;
#endif