summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-11-23 22:59:36 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-11-23 22:59:36 +0000
commit5abfbb92468a878efeb0d40be5d5c04602bf5d2c (patch)
tree51c7b8738d04e0e0c47e251d3738e5b6c64ced80 /llvm/lib/ExecutionEngine/RuntimeDyld
parenta70cdf5166fda781d695faaa4017783859f1a509 (diff)
downloadbcm5719-llvm-5abfbb92468a878efeb0d40be5d5c04602bf5d2c.tar.gz
bcm5719-llvm-5abfbb92468a878efeb0d40be5d5c04602bf5d2c.zip
[RuntimeDyld] Avoid unused-private-field warning; NFC
Fixes the no asserts -Werror,-Wunused-private-field build. llvm-svn: 253933
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
index 2bb6decac02..914efd24660 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
@@ -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; }
OpenPOWER on IntegriCloud