summaryrefslogtreecommitdiffstats
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-22 11:03:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-22 11:03:30 +0100
commit4865115d1b1499dd9e668b976fba8ac897fe43c1 (patch)
tree60a1526cef9291480a8a9aa4f22dd0b8136f7ba2 /compilerplugins
parentResolves: #i123744# consider certificate's Subject Alternative Name... (diff)
downloadcore-4865115d1b1499dd9e668b976fba8ac897fe43c1.tar.gz
core-4865115d1b1499dd9e668b976fba8ac897fe43c1.zip
Improve Clang 3.2 hasCLanguageLinkageType workaround
Change-Id: If5c104adc05aa362d15cedf6f8953bda478897bc
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/implicitboolconversion.cxx2
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