================
@@ -9317,14 +9317,14 @@ AssignConvertType
Sema::CheckAssignmentConstraints(QualType LHSType,
// If we have an atomic type, try a non-atomic assignment, then just add an
// atomic qualification step.
if (const AtomicType *AtomicTy = dyn_cast<AtomicType>(LHSType)) {
- AssignConvertType result =
+ AssignConvertType Result =
CheckAssignmentConstraints(AtomicTy->getValueType(), RHS, Kind);
- if (result != AssignConvertType::Compatible)
- return result;
+ if (!IsAssignConvertCompatible(Result))
----------------
erichkeane wrote:
This also now accepts Pointer-discards-quals and void-ptr-to-non-void-ptr.
Should we have tests for those (particularly OTHER non-atomic qualifiers, since
atomics are special)?
https://github.com/llvm/llvm-project/pull/154351
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits