================
@@ -8238,6 +8246,15 @@ ExprResult InitializationSequence::Perform(Sema &S,
}
}
+ // Note the return value isn't used to return early so that additional
+ // diagnostics can be emitted and to preserve the AST as best as possible
+ // even though an error might have occurred. For struct initialization it
+ // also allows all field assignments to be checked rather than bailing on
+ // the first error.
+ (void)S.BoundsSafetyCheckInitialization(
----------------
Sirraide wrote:
Same here. The cast to `(void)` also isn’t necessary I’d say.
https://github.com/llvm/llvm-project/pull/106321
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits