From: Hyeongseok Oh Date: Fri, 2 Jun 2017 04:51:33 +0000 (+0900) Subject: Fix formatting and bug X-Git-Tag: accepted/tizen/base/20180629.140029~1083^2~556^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72e1404db6e53ba31d05939f8f946f457f9f60e1;p=platform%2Fupstream%2Fcoreclr.git Fix formatting and bug Fix formatting Fix bug: DEBUG flag usage --- 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; }