Commit Graph

3 Commits

Author SHA1 Message Date
David Blaikie dd0fe187ab Fix r361428 for Windows buildbots/mangling
llvm-svn: 361439
2019-05-22 21:58:17 +00:00
Reid Kleckner e78cb1f20b Fix new enum-codegen.cpp test
llvm-svn: 361438
2019-05-22 21:52:12 +00:00
David Blaikie 275a55cb5a Modules: Code generation of enum constants for merged enum definitions
Found in a bootstrap of LLVM with implicit modules, resulting in a
deadlock of some Orc unit tests with libstdc++ 8.1. An enum was used as
part of the implementation of std::recursive_mutex and this bug resulted
in the constant initialization of zero instead of the desired non-zero
value. => Badness.

Richard Smith tells me neither of these fields are necessarily canonical
& so using declaresSamEntity is the right solution here (rather than
changing both of these Fields to be canonical by construction/from their
source)

llvm-svn: 361428
2019-05-22 20:36:06 +00:00