// If target is MIPS adjust the target triple
// accordingly to provided ABI name.
if (Target.isMIPS()) {
- if (A = Args.getLastArg(options::OPT_mabi_EQ)) {
+ if ((A = Args.getLastArg(options::OPT_mabi_EQ))) {
StringRef ABIName = A->getValue();
if (ABIName == "32") {
Target = Target.get32BitArchVariant();
// If target is RISC-V adjust the target triple according to
// provided architecture name
if (Target.isRISCV()) {
- if (A = Args.getLastArg(options::OPT_march_EQ)) {
+ if ((A = Args.getLastArg(options::OPT_march_EQ))) {
StringRef ArchName = A->getValue();
if (ArchName.startswith_insensitive("rv32"))
Target.setArch(llvm::Triple::riscv32);