summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/refassign.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/refassign.cxx')
-rw-r--r--compilerplugins/clang/store/refassign.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/store/refassign.cxx b/compilerplugins/clang/store/refassign.cxx
index 27471a6ae643..6d8e28605ea5 100644
--- a/compilerplugins/clang/store/refassign.cxx
+++ b/compilerplugins/clang/store/refassign.cxx
@@ -17,7 +17,6 @@
#include <clang/AST/CXXInheritance.h>
#include "check.hxx"
-#include "compat.hxx"
#include "plugin.hxx"
/**
@@ -120,7 +119,7 @@ bool RefAssign::VisitBinaryOperator(BinaryOperator const* binaryOp)
binaryOp->dump();
report(DiagnosticsEngine::Warning,
"assigning a %0 to a var of type %1 probably does not do what you think",
- compat::getBeginLoc(binaryOp))
+ binaryOp->getBeginLoc())
<< rhsType << lhsType << binaryOp->getSourceRange();
return true;
}