[PATCH] D97823: Update default arch on AIX

Jinsong Ji via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 3 09:11:02 PST 2021


jsji accepted this revision.
jsji added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:403
+    if (T.isOSAIX()) {
+      unsigned major, minor, micro;
+      T.getOSVersion(major, minor, micro);
----------------
stevewan wrote:
> jsji wrote:
> > `micro` unsed.
> Sorry I missed this comment. I agree that the unused `micro` is a bit ugly, do you have a preference on how you'd like it to be improved? We don't have an existing query for only `major` and `minor`, and creating one seems unnecessary IMHO. If you think renaming the variable to `unused_micro` mitigates the problem, I can do that.
That's ok to me


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97823



More information about the cfe-commits mailing list