[PATCH] D54426: [clang-cl] Do not allow using both /Zc:dllexportInlines- and /fallback flag

Takuto Ikuta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 12 07:19:02 PST 2018


takuto.ikuta marked 2 inline comments as done.
takuto.ikuta added a comment.

Thank you for review!



================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:5529
+                  false)) {
+   Arg *dllexportInlines = Args.getLastArg(options::OPT__SLASH_Zc_dllexportInlines_);
+   if (Args.hasArg(options::OPT__SLASH_fallback) && dllexportInlines) {
----------------
hans wrote:
> 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?
Ah, I don't need to call getAsString() anymore.


Repository:
  rL LLVM

https://reviews.llvm.org/D54426





More information about the cfe-commits mailing list