commit | 5b4f81ec14cd6d656514806f2a6b3b5e46d70103 | [log] [tgz] |
---|---|---|
author | Aaron Ballman <aaron@aaronballman.com> | Sat Oct 21 21:52:48 2017 +0000 |
committer | Aaron Ballman <aaron@aaronballman.com> | Sat Oct 21 21:52:48 2017 +0000 |
tree | 6dc28ee11951a1d3841b106c3dc13ff3348b912c | |
parent | 5b3fa2cd99ddc4483a7430e391f9505cc9865ce7 [diff] [blame] |
Reverting r316278 due to failing build bots. http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/11896 http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/12380 llvm-svn: 316279
diff --git a/clang/tools/libclang/CXSourceLocation.cpp b/clang/tools/libclang/CXSourceLocation.cpp index b1637e0..2e0ea4e 100644 --- a/clang/tools/libclang/CXSourceLocation.cpp +++ b/clang/tools/libclang/CXSourceLocation.cpp
@@ -318,7 +318,8 @@ const SourceManager &SM = *static_cast<const SourceManager*>(location.ptr_data[0]); - SourceLocation SpellLoc = SM.getSpellingLoc(Loc); + // FIXME: This should call SourceManager::getSpellingLoc(). + SourceLocation SpellLoc = SM.getFileLoc(Loc); std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SpellLoc); FileID FID = LocInfo.first; unsigned FileOffset = LocInfo.second;