- Drop a couple of asserts preventing this (in the merge function)
- Merge all fields as usual
- Ensure select fields match, for ODR checking
- add previously-failing test to merge-lambdas.cpp
Test case by Andrew Gallagher
NOTE: depends on D50948
Test Plan:
- Andrew's repro from https://bugs.llvm.org/show_bug.cgi?id=38531 broke before this change, works after.
- Similar repro added here as a test case.