From 72e1404db6e53ba31d05939f8f946f457f9f60e1 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Fri, 2 Jun 2017 13:51:33 +0900 Subject: [PATCH] Fix formatting and bug Fix formatting Fix bug: DEBUG flag usage --- src/jit/compiler.h | 2 +- src/jit/morph.cpp | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/jit/compiler.h b/src/jit/compiler.h index 53aa9ad..5a107fc 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -1340,7 +1340,7 @@ public: unsigned alignment FEATURE_UNIX_AMD64_STRUCT_PASSING_ONLY_ARG(const bool isStruct)); #ifdef DEBUG - void RemorphReset(); + void RemorphReset(); #endif fgArgTabEntryPtr RemorphRegArg( unsigned argNum, GenTreePtr node, GenTreePtr parent, regNumber regNum, unsigned numRegs, unsigned alignment); diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp index 33a77d2..4623708 100644 --- a/src/jit/morph.cpp +++ b/src/jit/morph.cpp @@ -2831,7 +2831,7 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call) fgPtrArgCntCur -= callStkLevel; } assert(call->fgArgInfo != nullptr); -#ifndef DEBUG +#ifdef DEBUG call->fgArgInfo->RemorphReset(); #endif @@ -4131,7 +4131,9 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call) #ifndef DEBUG if (!reMorphing) #endif - call->fgArgInfo->SplitArg(argIndex, numRegsPartial, size - numRegsPartial, reMorphing); + { + call->fgArgInfo->SplitArg(argIndex, numRegsPartial, size - numRegsPartial, reMorphing); + } fltArgRegNum = MAX_FLOAT_REG_ARG; } #endif // _TARGET_ARM_ @@ -4167,7 +4169,9 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call) #ifndef DEBUG if (!reMorphing) #endif - call->fgArgInfo->SplitArg(argIndex, numRegsPartial, size - numRegsPartial, reMorphing); + { + call->fgArgInfo->SplitArg(argIndex, numRegsPartial, size - numRegsPartial, reMorphing); + } intArgRegNum = MAX_REG_ARG; fgPtrArgCntCur += size - numRegsPartial; } -- 2.7.4