summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-11-07 18:25:36 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-11-07 18:25:36 +0000
commit1c628e3c3ebf61415a227579a1e12361ec3ca2d2 (patch)
treec1cf810f9324c570f6f78b0c6a8fc31efd128a2e /clang/lib
parent386fc2516cb8ec1cdbfa3bc9b293e36753360ed3 (diff)
downloadbcm5719-llvm-1c628e3c3ebf61415a227579a1e12361ec3ca2d2.tar.gz
bcm5719-llvm-1c628e3c3ebf61415a227579a1e12361ec3ca2d2.zip
[index] __builtin_offset's field reference is located at the end location
The starting location is the location of the '.' llvm-svn: 317596
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Index/IndexBody.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Index/IndexBody.cpp b/clang/lib/Index/IndexBody.cpp
index a54d2cbb929..ac34956b248 100644
--- a/clang/lib/Index/IndexBody.cpp
+++ b/clang/lib/Index/IndexBody.cpp
@@ -432,7 +432,7 @@ public:
for (unsigned I = 0, E = S->getNumComponents(); I != E; ++I) {
const OffsetOfNode &Component = S->getComponent(I);
if (Component.getKind() == OffsetOfNode::Field)
- IndexCtx.handleReference(Component.getField(), Component.getLocStart(),
+ IndexCtx.handleReference(Component.getField(), Component.getLocEnd(),
Parent, ParentDC, SymbolRoleSet(), {});
// FIXME: Try to resolve dependent field references.
}
OpenPOWER on IntegriCloud