aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-04-09 14:12:51 +0000
committerSam McCall <sam.mccall@gmail.com>2018-04-09 14:12:51 +0000
commitcc026ebf32de97bc685ded159dd9a2aa8710eaa3 (patch)
tree6278c508f7360ac56c3f89eb853d9806c9c3a64b /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent6400c03e6a7aff8e7c8c41d31c6c1d123d48aa5b (diff)
downloadllvm-cc026ebf32de97bc685ded159dd9a2aa8710eaa3.zip
llvm-cc026ebf32de97bc685ded159dd9a2aa8710eaa3.tar.gz
llvm-cc026ebf32de97bc685ded159dd9a2aa8710eaa3.tar.bz2
[Index] Return SourceLocation to consumers, not FileID/Offset pair.
Summary: The FileID/Offset conversion is lossy. The code takes the fileLoc, which loses e.g. the spelling location in some macro cases. Instead, pass the original SourceLocation which preserves all information, and update consumers to match current behavior. This allows us to fix two bugs in clangd that need the spelling location. Reviewers: akyrtzi, arphaman Subscribers: ilya-biryukov, ioeric, cfe-commits Differential Revision: https://reviews.llvm.org/D45014 llvm-svn: 329570
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions