[PATCH] D109555: [APInt] Enable APInt to support zero bit integers.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 13 02:30:30 PDT 2021


foad added inline comments.


================
Comment at: llvm/include/llvm/ADT/APInt.h:352
+      if (BitWidth == 0)
+        return false;
       return U.VAL == WORDTYPE_MAX >> (APINT_BITS_PER_WORD - BitWidth);
----------------
Should be true, surely?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109555



More information about the llvm-commits mailing list