benshi001 marked an inline comment as done.
benshi001 added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:387
       return A->getValue();
+    if (const Arg *A = Args.getLastArg(options::OPT_mcpu_EQ))
+      return A->getValue();
----------------
arichardson wrote:
> It looks to me that -mcpu will always take precedence over -mmcu with this 
> code even if mmcu comes later in the command line. Wouldn't it make more 
> sense to treat them as aliases?
That's really a good idea. Thanks!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139305/new/

https://reviews.llvm.org/D139305

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to