The problem is that there could be passes registered using addExtensionsToPM() introducing unnamed globals.
Asan is an example, but there may be others. Building cppcheck with -thinlto and -fsanitize=address triggers an assertion while we're reading bitcode (in lib/LTO), as the BitcodeReader while reading the summary assumes there are no unnamed globals because the namer has run).
Unfortunately I wasn't able to find an easy way to test this. I added a comment in the hope nobody moves this again, but, if folks have a way to test, I'm all ears.
Details
Details
- Reviewers
filcab tejohnson davidxl pcc mehdi_amini
Diff Detail
Diff Detail