summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/inlinesimplememberfunctions.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-29 09:15:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-29 09:15:25 +0200
commit733198de1b7fc3907609217147704f493f6146e6 (patch)
tree1ab5ee016775b53b00a3ccdc43f7bd3a767982b6 /compilerplugins/clang/inlinesimplememberfunctions.cxx
parent94809ea0d4101679794bb239313c4d73fab30419 (diff)
Remove support for Clang < 3.4
Change-Id: I81e97c5f720535b33dd3ce72d01151765e4e93a0
Diffstat (limited to 'compilerplugins/clang/inlinesimplememberfunctions.cxx')
-rw-r--r--compilerplugins/clang/inlinesimplememberfunctions.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/compilerplugins/clang/inlinesimplememberfunctions.cxx b/compilerplugins/clang/inlinesimplememberfunctions.cxx
index 74959c3127bd..b1515382205a 100644
--- a/compilerplugins/clang/inlinesimplememberfunctions.cxx
+++ b/compilerplugins/clang/inlinesimplememberfunctions.cxx
@@ -234,9 +234,10 @@ bool InlineSimpleMemberFunctions::rewrite(const CXXMethodDecl * functionDecl) {
// definition (in a main file only processed later) to fail
// with a "mismatch" error before the rewriter had a chance
// to act upon the definition.
- if (!compat::isInMainFile( compiler.getSourceManager(),
- compiler.getSourceManager().getSpellingLoc(
- functionDecl->getNameInfo().getLoc()))) {
+ if (!compiler.getSourceManager().isInMainFile(
+ compiler.getSourceManager().getSpellingLoc(
+ functionDecl->getNameInfo().getLoc())))
+ {
return false;
}