fix my previous commit

Change-Id: I287d99a46eda90718a3c4ec2c92f7b063babeb24
This commit is contained in:
Noel Grandin
2015-07-21 14:43:01 +02:00
parent 07645b443a
commit f3872352b3

View File

@@ -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