================
@@ -76,6 +76,33 @@ LLVM_DUMP_METHOD void 
ObjCPropertyInfo::dump(llvm::raw_ostream &OS) const {
   OS << '\n';
 }
 
+LLVM_DUMP_METHOD void BoundsSafetyInfo::dump(llvm::raw_ostream &OS) const {
+  if (KindAudited) {
+    assert(static_cast<BoundsSafetyKind>(Kind) <= BoundsSafetyKind::EndedBy);
----------------
compnerd wrote:

I don't think that this `assert` adds any value. The switch is meant to be 
covered, so the compiler will tell you if you miss something.

https://github.com/llvm/llvm-project/pull/186960
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to