Skip to content

Commit 4ebd9c0

Browse files
committed
[NFC] DiagnosticVerifier: Remove redundant variable
1 parent 91fedd9 commit 4ebd9c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Frontend/DiagnosticVerifier.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,7 @@ DiagnosticVerifier::Result DiagnosticVerifier::verifyFile(unsigned BufferID) {
346346
using llvm::SMLoc;
347347

348348
const SourceLoc BufferStartLoc = SM.getLocForBufferStart(BufferID);
349-
CharSourceRange EntireRange = SM.getRangeForBuffer(BufferID);
350-
StringRef InputFile = SM.extractText(EntireRange);
349+
StringRef InputFile = SM.getEntireTextForBuffer(BufferID);
351350
StringRef BufferName = SM.getIdentifierForBuffer(BufferID);
352351

353352
// Queue up all of the diagnostics, allowing us to sort them and emit them in

0 commit comments

Comments
 (0)