[PATCH] D89897: [AIX] Emit error for -G option on AIX

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 14:28:08 PDT 2020


hubert.reinterpretcast added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:4925
+  if (RawTriple.isOSAIX())
+    if (Arg *A = Args.getLastArg(options::OPT_G)) {
+      D.Diag(diag::err_drv_unsupported_opt_for_target)
----------------
Either remove the braces here or add braces for the outer block.

Refer to the
```
// Use braces for the outer `if` since the nested `for` is braced.
```
example under https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89897



More information about the llvm-commits mailing list