[llvm] 717ed1c - [APInt.h] don't privatize "needsCleanup"; it is used by Clang APValue
Chris Lattner via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 16:33:30 PDT 2021
Author: Chris Lattner
Date: 2021-09-08T16:33:06-07:00
New Revision: 717ed1c31052c89f3e26192342eed5ef6e8d0a8e
URL: https://github.com/llvm/llvm-project/commit/717ed1c31052c89f3e26192342eed5ef6e8d0a8e
DIFF: https://github.com/llvm/llvm-project/commit/717ed1c31052c89f3e26192342eed5ef6e8d0a8e.diff
LOG: [APInt.h] don't privatize "needsCleanup"; it is used by Clang APValue
Added:
Modified:
llvm/include/llvm/ADT/APInt.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index 7ab49d23840a..6d91416eeb06 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -1823,6 +1823,9 @@ class LLVM_NODISCARD APInt {
/// debug method
void dump() const;
+ /// Returns whether this instance allocated memory.
+ bool needsCleanup() const { return !isSingleWord(); }
+
private:
/// This union is used to store the integer value. When the
/// integer bit-width <= 64, it uses VAL, otherwise it uses pVal.
@@ -1990,9 +1993,6 @@ class LLVM_NODISCARD APInt {
/// to, or greater than RHS.
int compareSigned(const APInt &RHS) const LLVM_READONLY;
- /// Returns whether this instance allocated memory.
- bool needsCleanup() const { return !isSingleWord(); }
-
/// @}
};
More information about the llvm-commits
mailing list