diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 11:03:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-22 11:03:30 +0100 |
commit | 4865115d1b1499dd9e668b976fba8ac897fe43c1 (patch) | |
tree | 60a1526cef9291480a8a9aa4f22dd0b8136f7ba2 /compilerplugins | |
parent | 4a56b4ab2c100c506096f1808cca7268e576086c (diff) |
Improve Clang 3.2 hasCLanguageLinkageType workaround
Change-Id: If5c104adc05aa362d15cedf6f8953bda478897bc
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/implicitboolconversion.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx index 31377d8e3c97..bb5062668e6f 100644 --- a/compilerplugins/clang/implicitboolconversion.cxx +++ b/compilerplugins/clang/implicitboolconversion.cxx @@ -85,7 +85,7 @@ bool hasCLanguageLinkageType(FunctionDecl const * decl) { return true; } #else - if (decl->getDeclContext()->isExternCContext()) { + if (decl->getCanonicalDecl()->getDeclContext()->isExternCContext()) { return true; } #endif |