[all-commits] [llvm/llvm-project] ad37a4: [APInt] Fix isAllOnes and extractBits for zero wid...
Chris Lattner via All-commits
all-commits at lists.llvm.org
Wed Oct 6 12:38:08 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ad37a45a2e137fe05591f3fe7d23b5b921e7ff1d
https://github.com/llvm/llvm-project/commit/ad37a45a2e137fe05591f3fe7d23b5b921e7ff1d
Author: Chris Lattner <clattner at nondot.org>
Date: 2021-10-06 (Wed, 06 Oct 2021)
Changed paths:
M llvm/include/llvm/ADT/APInt.h
M llvm/lib/Support/APInt.cpp
M llvm/unittests/ADT/APIntTest.cpp
Log Message:
-----------
[APInt] Fix isAllOnes and extractBits for zero width values.
isAllOnes() should return true for zero bit values because
there are no zeros in it.
Thanks to Jay Foad for pointing this out.
Differential Revision: https://reviews.llvm.org/D111241
More information about the All-commits
mailing list