[clang][NFC] Fix a -Wparentheses warning.

This commit is contained in:
Craig Topper 2021-08-07 08:56:31 -07:00
parent 24dfba8d50
commit 618543bb12
1 changed files with 1 additions and 1 deletions

View File

@ -4747,7 +4747,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (StringRef(A->getValue()).getAsInteger(10, Value) || Value > 65536)
TC.getDriver().Diag(diag::err_drv_invalid_int_value)
<< A->getAsString(Args) << A->getValue();
else if (Value & Value - 1)
else if (Value & (Value - 1))
TC.getDriver().Diag(diag::err_drv_alignment_not_power_of_two)
<< A->getAsString(Args) << A->getValue();
// Treat =0 as unspecified (use the target preference).