mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
[flang] Rework line of code to dodge clang 16 warning
Recode a non-short-circuiting conjunction of two Boolean function calls into separate statements to avoid a warning from clang 16.
This commit is contained in:
@@ -429,7 +429,9 @@ bool CheckPointerAssignment(evaluate::FoldingContext &context,
|
||||
}
|
||||
PointerAssignmentChecker checker{context, scope, *pointer};
|
||||
checker.set_isBoundsRemapping(isBoundsRemapping);
|
||||
return checker.CheckLeftHandSide(lhs) & checker.Check(rhs);
|
||||
bool lhsOk{checker.CheckLeftHandSide(lhs)};
|
||||
bool rhsOk{checker.Check(rhs)};
|
||||
return lhsOk && rhsOk; // don't short-circuit
|
||||
}
|
||||
|
||||
bool CheckStructConstructorPointerComponent(evaluate::FoldingContext &context,
|
||||
|
||||
Reference in New Issue
Block a user