From 6c0398ed4702fdf33b4b3025c9ae466b558118ad Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 8 Feb 2004 19:33:07 +0000 Subject: [PATCH] There is no reason to #define fd git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11190 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/JIT/JITEmitter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 8da50919fd3..2bead72272d 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -72,10 +72,9 @@ static void *getMemory(unsigned NumBytes) { abort(); #endif + int fd = -1; #if defined(__linux__) -#define fd 0 -#else -#define fd -1 + fd = 0; #endif unsigned mmapFlags = MAP_PRIVATE|MAP_ANONYMOUS; -- 2.34.1