[all-commits] [llvm/llvm-project] 430fc5: [llvm-ar] Simplify Windows comparePaths NFCI

Andrew Ng via All-commits all-commits at lists.llvm.org
Fri Feb 14 03:22:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 430fc538e6dc2f3b1b6093755080efdcf206cd3f
      https://github.com/llvm/llvm-project/commit/430fc538e6dc2f3b1b6093755080efdcf206cd3f
  Author: Andrew Ng <andrew.ng at sony.com>
  Date:   2020-02-14 (Fri, 14 Feb 2020)

  Changed paths:
    M llvm/tools/llvm-ar/llvm-ar.cpp

  Log Message:
  -----------
  [llvm-ar] Simplify Windows comparePaths NFCI

Replace use of widenPath in comparePaths with UTF8ToUTF16. widenPath
does a lot more than just conversion from UTF-8 to UTF-16. This is not
necessary for CompareStringOrdinal and could possibly even cause
problems.

Differential Revision: https://reviews.llvm.org/D74477




More information about the All-commits mailing list