vitalybuka accepted this revision. vitalybuka added a comment. This revision is now accepted and ready to land.
LGTM either way ================ Comment at: compiler-rt/lib/dfsan/dfsan.cpp:180 dfsan_label __dfsan_union(dfsan_label l1, dfsan_label l2) { - if (flags().fast16labels) + if (fast16labels) return l1 | l2; ---------------- morehouse wrote: > vitalybuka wrote: > > isn't better just create new set of callbacks? > > e.g __dfsan_fast16_union > > and then we don't need any flags or preinit array initialization > Should work for `__dfsan_union` and `__dfsan_union_load`, but what about all > the other API functions the user can call directly? We wouldn't be able to > warn in those cases. > Should work for `__dfsan_union` and `__dfsan_union_load`, but what about all > the other API functions the user can call directly? We wouldn't be able to > warn in those cases. Those calls are no-op, it would be nice, but it's not worth it. You can avoid state variable fast16labels, and avoid preinit_array which time to time conflicts with other libs. Which looks more useful then warning. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D84371/new/ https://reviews.llvm.org/D84371 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits