/Zc:dllexportInlines with /fallback may cause unexpected linker error. It is better to disallow compile rather than warn for this combination.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
clang/include/clang/Basic/DiagnosticDriverKinds.td | ||
---|---|---|
164 ↗ | (On Diff #173667) | Let's make the name shorter. I think "err_drv_dllexport_inlines_and_fallback" or something is descriptive enough. |
clang/lib/Driver/ToolChains/Clang.cpp | ||
5529 ↗ | (On Diff #173667) | We know there must be a OPT__SLASH_Zc_dllexportInlines_ flag at this point (because it's checked in the if above), so I think think you need "&& dllexportInlines" below. In the previous version, you output the getAsString() of the arg to the diagnostic. Don't you want to do this still? |
Comment Actions
Thank you for review!
clang/lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
5529 ↗ | (On Diff #173667) | Ah, I don't need to call getAsString() anymore. |