1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[RuntimeDyld] Avoid unused-private-field warning; NFC

Fixes the no asserts -Werror,-Wunused-private-field build.

llvm-svn: 253933
This commit is contained in:
Sanjoy Das 2015-11-23 22:59:36 +00:00
parent 77556924fd
commit ec2e5ad60c

View File

@ -82,7 +82,11 @@ public:
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; }