diff options
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/implicitboolconversion.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx index c695148b790e..5c658fd9c715 100644 --- a/compilerplugins/clang/implicitboolconversion.cxx +++ b/compilerplugins/clang/implicitboolconversion.cxx @@ -159,6 +159,7 @@ bool isBoolExpr(Expr const * expr) { if (td == nullptr) { break; } + td = cast<TemplateDecl>(td->getCanonicalDecl()); TemplateParameterList const * ps = td->getTemplateParameters(); SubstTemplateTypeParmType const * t2 = getAsSubstTemplateTypeParmType( |