diff options
Diffstat (limited to 'compilerplugins/clang/derefnullptr.cxx')
-rw-r--r-- | compilerplugins/clang/derefnullptr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/derefnullptr.cxx b/compilerplugins/clang/derefnullptr.cxx index b1c9d6da6747..35c4c7adcf6c 100644 --- a/compilerplugins/clang/derefnullptr.cxx +++ b/compilerplugins/clang/derefnullptr.cxx @@ -37,7 +37,7 @@ bool DerefNullPtr::VisitUnaryOperator(UnaryOperator const * op) { { report( DiagnosticsEngine::Warning, "null pointer dereference", - compat::getBeginLoc(op)) + op->getBeginLoc()) << op->getSourceRange(); } return true; |