diff options
Diffstat (limited to 'compilerplugins/clang/dodgyswitch.cxx')
-rw-r--r-- | compilerplugins/clang/dodgyswitch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/dodgyswitch.cxx b/compilerplugins/clang/dodgyswitch.cxx index d0674b3632b0..43958f1364ad 100644 --- a/compilerplugins/clang/dodgyswitch.cxx +++ b/compilerplugins/clang/dodgyswitch.cxx @@ -41,7 +41,7 @@ bool DodgySwitch::VisitDefaultStmt(DefaultStmt const * defaultStmt) if (!IsParentSwitch(defaultStmt)) report( DiagnosticsEngine::Warning, "default statement not directly under switch", - compat::getBeginLoc(defaultStmt)) + defaultStmt->getBeginLoc()) << defaultStmt->getSourceRange(); return true; } @@ -55,7 +55,7 @@ bool DodgySwitch::VisitCaseStmt(CaseStmt const * caseStmt) //parentStmt(parentStmt(caseStmt))->dump(); report( DiagnosticsEngine::Warning, "case statement not directly under switch", - compat::getBeginLoc(caseStmt)) + caseStmt->getBeginLoc()) << caseStmt->getSourceRange(); } return true; |