[PATCH] D60379: Make precompiled headers reproducible

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 7 23:07:49 PDT 2019


lebedev.ri added a comment.

Needs a test.



================
Comment at: lib/Serialization/ASTWriter.cpp:4283
+  // Sort to allow reproducible .pch files - https://bugs.debian.org/877359
+  std::map<TypeID, std::set<std::string>> sortedOpenCLTypeExtMap;
   for (const auto &I : SemaRef.OpenCLTypeExtMap) {
----------------
Would it be better to just change the actual type of `SemaRef.OpenCLTypeExtMap`?
https://github.com/llvm-mirror/clang/blob/18917301298ad6df9e989983ed1e22cb0f9dff29/include/clang/Sema/Sema.h#L8710-L8712


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60379/new/

https://reviews.llvm.org/D60379





More information about the cfe-commits mailing list