summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-19 20:40:19 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-19 20:40:19 +0000
commite6e67deeed359c86ad74bd5525df676d7914faef (patch)
treef8c61b642403a5e8d30f832078f73293adbbd814 /clang/lib/Sema/SemaChecking.cpp
parentc284238aa2ea862c3c93cda2351bb6032246c4e5 (diff)
downloadbcm5719-llvm-e6e67deeed359c86ad74bd5525df676d7914faef.tar.gz
bcm5719-llvm-e6e67deeed359c86ad74bd5525df676d7914faef.zip
Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset.
It already works (and is useful with) macro locs as well. llvm-svn: 140057
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index aecc659485d..cda4d92d2f5 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -1302,7 +1302,7 @@ getSpecifierRange(const char *startSpecifier, unsigned specifierLen) {
SourceLocation End = getLocationOfByte(startSpecifier + specifierLen - 1);
// Advance the end SourceLocation by one due to half-open ranges.
- End = End.getFileLocWithOffset(1);
+ End = End.getLocWithOffset(1);
return CharSourceRange::getCharRange(Start, End);
}
OpenPOWER on IntegriCloud