summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-03 02:20:36 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-03 02:20:36 +0000
commit7ca77357ced396b7548806e404af70a1c4bcf567 (patch)
treeeddb29f4bb858be956504b5b3de41e9cc70af38b /clang/tools/libclang
parente9681525649adf23f626641d5e0c2ec08b756927 (diff)
downloadbcm5719-llvm-7ca77357ced396b7548806e404af70a1c4bcf567.tar.gz
bcm5719-llvm-7ca77357ced396b7548806e404af70a1c4bcf567.zip
[libclang] Add missing return in clang_getExpansionLocation that resulted in that function
always returning a null file/line/column. Also add at least one use of clang_getExpansionLocation inside c-index-test that would have made the tests to catch that. llvm-svn: 143606
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CXSourceLocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/libclang/CXSourceLocation.cpp b/clang/tools/libclang/CXSourceLocation.cpp
index 71383445c57..d8d4c96e48d 100644
--- a/clang/tools/libclang/CXSourceLocation.cpp
+++ b/clang/tools/libclang/CXSourceLocation.cpp
@@ -212,6 +212,7 @@ void clang_getExpansionLocation(CXSourceLocation location,
*column = SM.getExpansionColumnNumber(ExpansionLoc);
if (offset)
*offset = SM.getDecomposedLoc(ExpansionLoc).second;
+ return;
}
// FIXME:
OpenPOWER on IntegriCloud