[all-commits] [llvm/llvm-project] b5088c: [clang][deps] Ensure deterministic order of TU '-f...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Aug 25 02:14:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5088cb408222eba4611e6121293166904ca48e6
      https://github.com/llvm/llvm-project/commit/b5088cb408222eba4611e6121293166904ca48e6
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-08-25 (Wed, 25 Aug 2021)

  Changed paths:
    M clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
    M clang/test/ClangScanDeps/modules-pch.c

  Log Message:
  -----------
  [clang][deps] Ensure deterministic order of TU '-fmodule-file=' arguments

Translation units with multiple direct modular dependencies trigger a non-deterministic ordering in `clang-scan-deps`. This boils down to usage of `std::unordered_map`, which gets replaced by `std::map` in this patch.

Depends on D103526.

Reviewed By: dexonsmith

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




More information about the All-commits mailing list