If the same pass manager is used for multiple modules ASAN complains about GlobalsMD being initialized twice. Fix this by resetting GlobalsMD in a new doFinalization method to allow this use case.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
The easiest thing would probably be to change llc to reuse the pass manager if multiple modules are passed on the command line. Then this could be tested quite easily from the command line. Will draw up an appropriate patch and see if people like it.
Comment Actions
LGTM,
but I would run this test on a non-empty test (with some small function in it), just in case.