[llvm] DynamicAPInt: Support APInt constructor. (PR #146301)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 06:17:32 PDT 2025
================
@@ -116,6 +117,14 @@ class DynamicAPInt {
: ValSmall(Val) {
ValLarge.Val.BitWidth = 0;
}
+ LLVM_ATTRIBUTE_ALWAYS_INLINE explicit DynamicAPInt(const APInt &Val) {
+ if (Val.getBitWidth() < 64) {
----------------
nikic wrote:
```suggestion
if (Val.getBitWidth() <= 64) {
```
https://github.com/llvm/llvm-project/pull/146301
More information about the llvm-commits
mailing list