summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/unnecessarycatchthrow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/unnecessarycatchthrow.cxx')
-rw-r--r--compilerplugins/clang/unnecessarycatchthrow.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/unnecessarycatchthrow.cxx b/compilerplugins/clang/unnecessarycatchthrow.cxx
index 903e903823ab..0a8265b170d6 100644
--- a/compilerplugins/clang/unnecessarycatchthrow.cxx
+++ b/compilerplugins/clang/unnecessarycatchthrow.cxx
@@ -16,7 +16,6 @@
#include <set>
#include <clang/AST/CXXInheritance.h>
-#include "compat.hxx"
#include "plugin.hxx"
/**
@@ -77,7 +76,7 @@ bool UnnecessaryCatchThrow::VisitCXXTryStmt(CXXTryStmt const * tryStmt)
}
report( DiagnosticsEngine::Warning, "unnecessary catch and throw",
- compat::getBeginLoc(catchStmt))
+ catchStmt->getBeginLoc())
<< catchStmt->getSourceRange();
return true;
}