mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-04 18:38:05 +00:00
Fix a conversion warning in the mingw32 build
gcc diagnoses this: warning: converting to non-pointer type 'unsigned int' from NULL Also remove an empty statement. No change in functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8d433bd458
commit
7a7fc90ba3
@ -82,7 +82,7 @@ MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
|
|||||||
|
|
||||||
uintptr_t Start = NearBlock ? reinterpret_cast<uintptr_t>(NearBlock->base()) +
|
uintptr_t Start = NearBlock ? reinterpret_cast<uintptr_t>(NearBlock->base()) +
|
||||||
NearBlock->size()
|
NearBlock->size()
|
||||||
: NULL;
|
: 0;
|
||||||
|
|
||||||
// If the requested address is not aligned to the allocation granularity,
|
// If the requested address is not aligned to the allocation granularity,
|
||||||
// round up to get beyond NearBlock. VirtualAlloc would have rounded down.
|
// round up to get beyond NearBlock. VirtualAlloc would have rounded down.
|
||||||
@ -106,7 +106,7 @@ MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
|
|||||||
MemoryBlock Result;
|
MemoryBlock Result;
|
||||||
Result.Address = PA;
|
Result.Address = PA;
|
||||||
Result.Size = NumBlocks*Granularity;
|
Result.Size = NumBlocks*Granularity;
|
||||||
;
|
|
||||||
if (Flags & MF_EXEC)
|
if (Flags & MF_EXEC)
|
||||||
Memory::InvalidateInstructionCache(Result.Address, Result.Size);
|
Memory::InvalidateInstructionCache(Result.Address, Result.Size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user