aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2022-01-27 22:17:16 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-05-14 11:44:34 +0000
commit04eeddc0aa8e0a417a16eaf9d7d095207f4a8623 (patch)
tree2a5d3b2fe5c852e91531d128d9177754572d5338 /contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp
parent0eae32dcef82f6f06de6419a0d623d7def0cc8f6 (diff)
parent6f8fc217eaa12bf657be1c6468ed9938d10168b3 (diff)
Diffstat (limited to 'contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp b/contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp
index 6690dd07d99b..56b232b9dbcd 100644
--- a/contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp
+++ b/contrib/llvm-project/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp
@@ -114,11 +114,11 @@ uint8_t *SectionMemoryManager::allocateSection(
// Copy the address to all the other groups, if they have not
// been initialized.
- if (CodeMem.Near.base() == 0)
+ if (CodeMem.Near.base() == nullptr)
CodeMem.Near = MB;
- if (RODataMem.Near.base() == 0)
+ if (RODataMem.Near.base() == nullptr)
RODataMem.Near = MB;
- if (RWDataMem.Near.base() == 0)
+ if (RWDataMem.Near.base() == nullptr)
RWDataMem.Near = MB;
// Remember that we allocated this memory