Skip to content

Commit

Permalink
Fixed Issue asmjit#114
Browse files Browse the repository at this point in the history
  • Loading branch information
kobalicek committed Nov 30, 2015
1 parent a910f05 commit 6758955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asmjit/x86/x86compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ static Error X86FuncDecl_initFunc(X86FuncDecl* self, uint32_t arch,
int32_t gpPos = 0;
int32_t xmmPos = 0;
int32_t stackOffset = 0;

const uint8_t* varMapping;
const uint8_t* varMapping = NULL;

#if defined(ASMJIT_BUILD_X86)
if (arch == kArchX86)
Expand All @@ -341,6 +340,7 @@ static Error X86FuncDecl_initFunc(X86FuncDecl* self, uint32_t arch,
varMapping = _x64VarMapping;
#endif // ASMJIT_BUILD_X64

ASMJIT_ASSERT(varMapping != NULL);
self->_argCount = static_cast<uint8_t>(argCount);
self->_retCount = 0;

Expand Down

0 comments on commit 6758955

Please sign in to comment.