summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/redundantinline.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/redundantinline.cxx')
-rw-r--r--compilerplugins/clang/redundantinline.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/compilerplugins/clang/redundantinline.cxx b/compilerplugins/clang/redundantinline.cxx
index 1c3ea454a955..5fab44825afa 100644
--- a/compilerplugins/clang/redundantinline.cxx
+++ b/compilerplugins/clang/redundantinline.cxx
@@ -137,14 +137,7 @@ private:
}
bool handleNonExternalLinkage(FunctionDecl const * decl) {
- if (decl->getLinkageInternal() >=
-#if CLANG_VERSION >= 50000
- ModuleLinkage
-#else
- ExternalLinkage
-#endif
- )
- {
+ if (decl->getLinkageInternal() >= ModuleLinkage) {
return false;
}
if (!compiler.getSourceManager().isInMainFile(decl->getLocation())) {