Revert "[Modules] Remove unnecessary check when generating name lookup table in ASTWriter"
This reverts commit db987b95. We're seeing failures in modules-enabled builds from within stdlib after this commit. Errors look like: In module '...stl_cc_library': ...optional:560:38: error: 'std::__optional_copy_assign_base<unsigned long>::__optional_copy_assign_base' from module '...optional' is not present in definition of 'std::__optional_copy_assign_base<unsigned long>' in module '...optional' using __optional_move_base<_Tp>::__optional_move_base; In module '...stl_cc_library': ...optional:771:11: error: no matching constructor for initialization of '__optional_move_assign_base<unsigned long>' : __base(in_place, _VSTD::forward<_Up>(__v)) {} ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ llvm-project/clang/include/clang/Basic/CodeGenOptions.h:448:57: note: in instantiation of function template specialization 'std::optional<unsigned long>::optional<int, 0>' requested here std::optional<uint64_t> DiagnosticsHotnessThreshold = 0; I don't have a self-contained reproducer at this point. I'm hoping that we may be able to share more information about these issues later, if necessary.
parent
4d96a6b7
Please register or sign in to comment