diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-02-28 03:03:07 +0000 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-02-28 03:03:07 +0000 |
commit | 68c4827660e0356d6fae02406018161d76a0c3f2 (patch) | |
tree | 2ebbe68c002bbe50f4bb78968f7f921654d4c591 /llvm/lib/Support/Unix | |
parent | b05ba93578dd366f7cd1a5181470566cd523528a (diff) | |
download | bcm5719-llvm-68c4827660e0356d6fae02406018161d76a0c3f2.tar.gz bcm5719-llvm-68c4827660e0356d6fae02406018161d76a0c3f2.zip |
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.
llvm-svn: 355066
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Memory.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc index 3473b488384..d03ba6e8484 100644 --- a/llvm/lib/Support/Unix/Memory.inc +++ b/llvm/lib/Support/Unix/Memory.inc @@ -128,6 +128,7 @@ Memory::allocateMappedMemory(size_t NumBytes, MemoryBlock Result; Result.Address = Addr; Result.Size = NumBytes; + Result.Flags = PFlags; // Rely on protectMappedMemory to invalidate instruction cache. if (PFlags & MF_EXEC) { |