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 | 42fe858cd6fff76fc8f3e7f6c0c58116782bd246 (patch) | |
tree | 189b2b29bf6a7b0470a196f0742c2445d4accb9a /clang/lib/Basic/SourceLocation.cpp | |
parent | f2e4b5dd7f6e2e80bdfec64205dbf9120eef728f (diff) | |
download | bcm5719-llvm-42fe858cd6fff76fc8f3e7f6c0c58116782bd246.tar.gz bcm5719-llvm-42fe858cd6fff76fc8f3e7f6c0c58116782bd246.zip |
Audit all callers of SourceManager::getCharacterData(); update some of
them to recover more gracefully on failure.
llvm-svn: 98672
Diffstat (limited to 'clang/lib/Basic/SourceLocation.cpp')
-rw-r--r-- | clang/lib/Basic/SourceLocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/SourceLocation.cpp b/clang/lib/Basic/SourceLocation.cpp index 85e5595dc2e..5ccd73171e2 100644 --- a/clang/lib/Basic/SourceLocation.cpp +++ b/clang/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 { |