================ @@ -464,6 +464,7 @@ static void parseTargetArgs(TargetOptions &opts, llvm::opt::ArgList &args) { if (const llvm::opt::Arg *a = args.getLastArg(clang::driver::options::OPT_mabi_EQ)) { + opts.abi = a->getValue(); llvm::StringRef V = a->getValue(); if (V == "vec-extabi") { ---------------- kkwli wrote:
@jrtc27 I look at it further. The guard is not necessary. In `AddPPCTargetArgs`, the option is added only if it is PPC and `isOSAIX()` is true. So if it is not PPC, `args` in `parseTargetArgs` will not contain `-mabi=vec-extabi`. https://github.com/llvm/llvm-project/pull/126188 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits