[all-commits] [llvm/llvm-project] 1b023f: Frontend: Use translateLineCol instead of translat...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Fri Dec 4 14:43:33 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b023f54b61737552242868bdfc385487f1c3e74
      https://github.com/llvm/llvm-project/commit/1b023f54b61737552242868bdfc385487f1c3e74
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M clang/lib/Frontend/VerifyDiagnosticConsumer.cpp

  Log Message:
  -----------
  Frontend: Use translateLineCol instead of translateFileLineCol, NFC

`ParseDirective` in VerifyDiagnosticConsumer.cpp is already calling
`translateFile`, so use the `FileID` returned by that to call
`translateLineCol` instead of using the more heavyweight
`translateFileLineCol`.

No functionality change here.




More information about the All-commits mailing list