summaryrefslogtreecommitdiffstats
path: root/clang/lib/Rewrite/Core/HTMLRewrite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Rewrite/Core/HTMLRewrite.cpp')
-rw-r--r--clang/lib/Rewrite/Core/HTMLRewrite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Rewrite/Core/HTMLRewrite.cpp b/clang/lib/Rewrite/Core/HTMLRewrite.cpp
index 2d279f1ee4a..2a5442afcd5 100644
--- a/clang/lib/Rewrite/Core/HTMLRewrite.cpp
+++ b/clang/lib/Rewrite/Core/HTMLRewrite.cpp
@@ -361,7 +361,7 @@ void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) {
const SourceManager &SM = PP.getSourceManager();
const llvm::MemoryBuffer *FromFile = SM.getBuffer(FID);
Lexer L(FID, FromFile, SM, PP.getLangOpts());
- const char *BufferStart = L.getBufferStart();
+ const char *BufferStart = L.getBuffer().data();
// Inform the preprocessor that we want to retain comments as tokens, so we
// can highlight them.
OpenPOWER on IntegriCloud