[llvm] r355066 - Fix non-Windows platforms build break introduced by r355065. Fixes:
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 27 19:03:08 PST 2019
Author: aganea
Date: Wed Feb 27 19:03:07 2019
New Revision: 355066
URL: http://llvm.org/viewvc/llvm-project?rev=355066&view=rev
Log:
Fix non-Windows platforms build break introduced by r355065. Fixes:
In file included from /home/buildbots/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm/lib/Support/Memory.cpp:14:
/home/buildbots/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm/include/llvm/Support/Memory.h:38:14: error: private field 'Flags' is not used [-Werror,-Wunused-private-field]
unsigned Flags = 0;
^
1 error generated.
Modified:
llvm/trunk/lib/Support/Unix/Memory.inc
Modified: llvm/trunk/lib/Support/Unix/Memory.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Memory.inc?rev=355066&r1=355065&r2=355066&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Memory.inc (original)
+++ llvm/trunk/lib/Support/Unix/Memory.inc Wed Feb 27 19:03:07 2019
@@ -128,6 +128,7 @@ Memory::allocateMappedMemory(size_t NumB
MemoryBlock Result;
Result.Address = Addr;
Result.Size = NumBytes;
+ Result.Flags = PFlags;
// Rely on protectMappedMemory to invalidate instruction cache.
if (PFlags & MF_EXEC) {
More information about the llvm-commits
mailing list