[clang][Diagnostic][NFC] Simplify emitDiagnosticLoc
authorTimm Bäder <tbaeder@redhat.com>
Mon, 22 May 2023 13:27:24 +0000 (15:27 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 31 May 2023 07:40:24 +0000 (09:40 +0200)
commitc113cbb51005108d1380a4b9d501ddeb1366a406
tree8200482bd315e1000f4bcf084575d928d16e5a0f
parent1c765483fd34efe3ff7f71a9d2d5781bdf3d4517
[clang][Diagnostic][NFC] Simplify emitDiagnosticLoc

We don't use the offset returned from SourceManager::getDecomposedLoc
here, so we might as well just use getFileID().

Differential Revision: https://reviews.llvm.org/D151093
clang/lib/Frontend/TextDiagnostic.cpp