We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91fedd9 commit 4ebd9c0Copy full SHA for 4ebd9c0
lib/Frontend/DiagnosticVerifier.cpp
@@ -346,8 +346,7 @@ DiagnosticVerifier::Result DiagnosticVerifier::verifyFile(unsigned BufferID) {
346
using llvm::SMLoc;
347
348
const SourceLoc BufferStartLoc = SM.getLocForBufferStart(BufferID);
349
- CharSourceRange EntireRange = SM.getRangeForBuffer(BufferID);
350
- StringRef InputFile = SM.extractText(EntireRange);
+ StringRef InputFile = SM.getEntireTextForBuffer(BufferID);
351
StringRef BufferName = SM.getIdentifierForBuffer(BufferID);
352
353
// Queue up all of the diagnostics, allowing us to sort them and emit them in
0 commit comments