[APInt] Make insertBits and concat work with zero width APInts.
authorChris Lattner <clattner@nondot.org>
Tue, 5 Oct 2021 04:33:51 +0000 (21:33 -0700)
committerChris Lattner <clattner@nondot.org>
Tue, 5 Oct 2021 15:41:53 +0000 (08:41 -0700)
commitcc697fc292b0a405eaa42c6c8e5f117ba4f7d73b
treeabca09d0395133e0acf64071f76719d242af32d2
parent6831c1d8689bebe745aac1fdd7354c2e2f692c1a
[APInt] Make insertBits and concat work with zero width APInts.

These should both clearly work with our current model for zero width
integers, but don't until now!

Differential Revision: https://reviews.llvm.org/D111113
llvm/lib/Support/APInt.cpp
llvm/unittests/ADT/APIntTest.cpp