projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add makeArrayRef() overload for ArrayRef input (no-op/identity) NFC
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
APInt.h
diff --git
a/include/llvm/ADT/APInt.h
b/include/llvm/ADT/APInt.h
index 5013f295f5c790ae2c366ebaf1be0c36151e659e..e2a0cb5e69dc0d67f9eac4c17bfc7858eef8eab7 100644
(file)
--- a/
include/llvm/ADT/APInt.h
+++ b/
include/llvm/ADT/APInt.h
@@
-294,11
+294,12
@@
public:
delete[] pVal;
}
delete[] pVal;
}
- /// \brief Default constructor that creates an uninitialized APInt.
+ /// \brief Default constructor that creates an uninteresting APInt
+ /// representing a 1-bit zero value.
///
/// This is useful for object deserialization (pair this with the static
/// method Read).
///
/// This is useful for object deserialization (pair this with the static
/// method Read).
- explicit APInt() : BitWidth(1) {}
+ explicit APInt() : BitWidth(1)
, VAL(0)
{}
/// \brief Returns whether this instance allocated memory.
bool needsCleanup() const { return !isSingleWord(); }
/// \brief Returns whether this instance allocated memory.
bool needsCleanup() const { return !isSingleWord(); }
@@
-1528,7
+1529,7
@@
public:
/// \returns the nearest log base 2 of this APInt. Ties round up.
///
/// NOTE: When we have a BitWidth of 1, we define:
/// \returns the nearest log base 2 of this APInt. Ties round up.
///
/// NOTE: When we have a BitWidth of 1, we define:
- ///
+ ///
/// log2(0) = UINT32_MAX
/// log2(1) = 0
///
/// log2(0) = UINT32_MAX
/// log2(1) = 0
///