bruno marked an inline comment as done. bruno added inline comments.
================ Comment at: utils/hmaptool/hmaptool:55 + # The number of buckets must be a power of two. + if num_buckets == 0 or (num_buckets & num_buckets - 1) != 0: + raise SystemExit("error: %s: invalid number of buckets" % ( ---------------- jkorous wrote: > Wouldn't it be simpler to use modulo 2? > > ``` > if num_buckets % 2 == 0 > ``` We want it to be a power of two, not just a multiple. ================ Comment at: utils/hmaptool/hmaptool:234 + + if len(args) != 2: + parser.error("invalid number of arguments") ---------------- jkorous wrote: > Aren't we expecting just single argument (<headermap path>) here? We also need the <dir> from --build-path <dir> Repository: rC Clang https://reviews.llvm.org/D46485 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits