Fix formatting and bug
authorHyeongseok Oh <hseok82.oh@samsung.com>
Fri, 2 Jun 2017 04:51:33 +0000 (13:51 +0900)
committerHyeongseok Oh <hseok82.oh@samsung.com>
Fri, 2 Jun 2017 04:51:33 +0000 (13:51 +0900)
Fix formatting
Fix bug: DEBUG flag usage

src/jit/compiler.h
src/jit/morph.cpp

index 53aa9ad..5a107fc 100644 (file)
@@ -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);
index 33a77d2..4623708 100644 (file)
@@ -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;
                         }