================
@@ -4557,7 +4557,7 @@ static QualType mergeTypeNullabilityForRedecl(Sema &S,
SourceLocation loc,
auto prevNullability = prevType->getNullability();
// Easy case: both have nullability.
- if (nullability.has_value() == prevNullability.has_value()) {
+ if (bool(nullability) == bool(prevNullability)) {
----------------
erichkeane wrote:
Cast to bool here is a little bit of a subtle syntax, we should have some sort
of function that explains what is going on.
https://github.com/llvm/llvm-project/pull/191828
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits