Fixes the no asserts -Werror,-Wunused-private-field build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253933
91177308-0d34-0410-b5e6-
96231b3b80d8
size_t allocationSize, uintptr_t objAddress)
: Name(name), Address(address), Size(size),
LoadAddress(reinterpret_cast<uintptr_t>(address)), StubOffset(size),
size_t allocationSize, uintptr_t objAddress)
: Name(name), Address(address), Size(size),
LoadAddress(reinterpret_cast<uintptr_t>(address)), StubOffset(size),
- AllocationSize(allocationSize), ObjAddress(objAddress) {}
+ AllocationSize(allocationSize), ObjAddress(objAddress) {
+ // AllocationSize is used only in asserts, prevent an "unused private field"
+ // warning:
+ (void)AllocationSize;
+ }
StringRef getName() const { return Name; }
StringRef getName() const { return Name; }