aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Basic/SourceLocation.h2
-rw-r--r--include/clang/Lex/Preprocessor.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index adfe213095..5b7f877200 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -206,7 +206,7 @@ public:
unsigned getSpellingLineNumber() const;
unsigned getSpellingColumnNumber() const;
- const char *getCharacterData() const;
+ const char *getCharacterData(bool *Invalid = 0) const;
const llvm::MemoryBuffer* getBuffer(bool *Invalid = 0) const;
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 2b27a06070..3ef1fcdbda 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -595,7 +595,7 @@ public:
// Otherwise, fall back on getCharacterData, which is slower, but always
// works.
- return *SourceMgr.getCharacterData(Tok.getLocation());
+ return *SourceMgr.getCharacterData(Tok.getLocation(), Invalid);
}
/// CreateString - Plop the specified string into a scratch buffer and set the