srhines added inline comments.

================
Comment at: lib/Driver/ToolChains/Gnu.cpp:661
     Arg *A;
-    if ((A = Args.getLastArg(options::OPT_mcpu_EQ)) &&
-        StringRef(A->getValue()).equals_lower("krait"))
-      CmdArgs.push_back("-mcpu=cortex-a15");
-    else
-      Args.AddLastArg(CmdArgs, options::OPT_mcpu_EQ);
+    if ((A = Args.getLastArg(options::OPT_mcpu_EQ))) {
+      StringRef CPUArg(A->getValue());
----------------
Arg *A can also get moved here.


https://reviews.llvm.org/D40476



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

Reply via email to