================
@@ -491,7 +503,7 @@ void NullabilityChecker::reportBugIfInvariantHolds(
     N = C.addTransition(OriginalState, N);
   }
 
-  reportBug(Msg, Error, CK, N, Region, C.getBugReporter(), ValueExpr);
+  reportBug(Msg, Error, Idx, N, Region, C.getBugReporter(), ValueExpr);
----------------
NagyDonat wrote:

Good idea, I'll implement it.

I didn't think about this question and just mechanically translated the `enum 
CheckKind` (essentially another integer type) to `CheckerPartIdx` -- but in 
this particular checker it will be only used to get `BugTypes[Idx]` so I can 
switch to passing a bug type ref.

https://github.com/llvm/llvm-project/pull/132250
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to