[PATCH] D103953: Sanitizers.h - remove MathExtras.h include dependency

Simon Pilgrim via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 9 04:04:16 PDT 2021


RKSimon added inline comments.


================
Comment at: clang/lib/CodeGen/CGExpr.cpp:3129
 static CheckRecoverableKind getRecoverableKind(SanitizerMask Kind) {
-  assert(Kind.countPopulation() == 1);
+  assert(Kind.isPowerOf2());
   if (Kind == SanitizerKind::Function || Kind == SanitizerKind::Vptr)
----------------
I'm happy to revert this line, its purely to demonstrate that the methods are just used in asserts.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103953/new/

https://reviews.llvm.org/D103953



More information about the cfe-commits mailing list