summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-08-09 20:05:47 +0000
committerStephen Kelly <steveire@gmail.com>2018-08-09 20:05:47 +0000
commit02a67baf1ea5055aea572f979cc1e45eed0660dc (patch)
tree36544bafd01c9a2bcbb39aa6a8807d393db81ff9 /clang/lib/Sema/SemaChecking.cpp
parent3cffc4c76a38edda4c2adcf7c3e005b59b3c0397 (diff)
downloadbcm5719-llvm-02a67baf1ea5055aea572f979cc1e45eed0660dc.tar.gz
bcm5719-llvm-02a67baf1ea5055aea572f979cc1e45eed0660dc.zip
Add getEndLoc API to replace getLocEnd
Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D50348 llvm-svn: 339374
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 88e0a640ea9..8af2c07fff5 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -6126,7 +6126,8 @@ class FormatStringLiteral {
return FExpr->getLocStart().getLocWithOffset(Offset);
}
- SourceLocation getLocEnd() const LLVM_READONLY { return FExpr->getLocEnd(); }
+ SourceLocation getLocEnd() const LLVM_READONLY { return getEndLoc(); }
+ SourceLocation getEndLoc() const LLVM_READONLY { return FExpr->getLocEnd(); }
};
} // namespace
OpenPOWER on IntegriCloud