[Driver] Silence a -Wparentheses error. NFC

This commit is contained in:
Craig Topper 2022-09-27 10:25:18 -07:00
parent c9adeca501
commit cbbce9b537
1 changed files with 2 additions and 2 deletions

View File

@ -635,7 +635,7 @@ static llvm::Triple computeTargetTriple(const Driver &D,
// 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();
@ -659,7 +659,7 @@ static llvm::Triple computeTargetTriple(const Driver &D,
// 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);