diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-16 20:46:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-16 20:46:42 +0000 |
commit | a543016fe07030f695d6d56fd22c8c8da617e0d7 (patch) | |
tree | 4f007b8435178d3d477774b9f2a69f4b70a1badf /lib/Basic/SourceLocation.cpp | |
parent | 47a3fcd4afe122b23f9e7b6148f147bfa460cfe8 (diff) |
Audit all callers of SourceManager::getCharacterData(); update some of
them to recover more gracefully on failure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/SourceLocation.cpp')
-rw-r--r-- | lib/Basic/SourceLocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/SourceLocation.cpp b/lib/Basic/SourceLocation.cpp index 85e5595dc2..5ccd73171e 100644 --- a/lib/Basic/SourceLocation.cpp +++ b/lib/Basic/SourceLocation.cpp @@ -105,9 +105,9 @@ bool FullSourceLoc::isInSystemHeader() const { return SrcMgr->isInSystemHeader(*this); } -const char *FullSourceLoc::getCharacterData() const { +const char *FullSourceLoc::getCharacterData(bool *Invalid) const { assert(isValid()); - return SrcMgr->getCharacterData(*this); + return SrcMgr->getCharacterData(*this, Invalid); } const llvm::MemoryBuffer* FullSourceLoc::getBuffer(bool *Invalid) const { |