The patch simply relaxes the check. I think it is OK to have dllimport-weak-externals.
Details
Diff Detail
Event Timeline
llvm/test/Verifier/weak-dllimport.ll | ||
---|---|---|
1 | Yes it can be simplified. Most of the executable code and attributes can go away. It will lose its connection to the source though. Is that preferred ? |
llvm/test/Verifier/weak-dllimport.ll | ||
---|---|---|
1 | IMO, yes that's preferred. Leaving a fragment of source in as a comment to show how the situation came about is fine. But simplifying the IR of the test so it focuses on the problem makes it clearer to me. |
This relaxation of the assertion-check LGTM.