Let SourceManager::getBufferData return StringRef instead of a pair of two const char*.
llvm-svn: 98630
This commit is contained in:
@@ -44,7 +44,7 @@ void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
|
||||
EOffset += Lexer::MeasureTokenLength(E, R.getSourceMgr(), R.getLangOpts());
|
||||
|
||||
bool Invalid = false;
|
||||
const char *BufferStart = SM.getBufferData(FID, &Invalid).first;
|
||||
const char *BufferStart = SM.getBufferData(FID, &Invalid).data();
|
||||
if (Invalid)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user