diff options
Diffstat (limited to 'clang/lib/ARCMigrate/TransProtectedScope.cpp')
-rw-r--r-- | clang/lib/ARCMigrate/TransProtectedScope.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/ARCMigrate/TransProtectedScope.cpp b/clang/lib/ARCMigrate/TransProtectedScope.cpp index 1bb4c1f4e44..e9485e4bdb3 100644 --- a/clang/lib/ARCMigrate/TransProtectedScope.cpp +++ b/clang/lib/ARCMigrate/TransProtectedScope.cpp @@ -77,8 +77,9 @@ public: Curr = S->getSwitchCaseList(); // We iterate over case statements in reverse source-order. while (Curr) { - Cases.push_back(CaseInfo(Curr,SourceRange(Curr->getLocStart(), NextLoc))); - NextLoc = Curr->getLocStart(); + Cases.push_back( + CaseInfo(Curr, SourceRange(Curr->getBeginLoc(), NextLoc))); + NextLoc = Curr->getBeginLoc(); Curr = Curr->getNextSwitchCase(); } return true; |