Ignore:
Timestamp:
Mar 15, 2008, 3:33:36 PM (16 years ago)
Author:
dai_9181
Message:

関数の戻り値の構造体など、一時メモリに保持された構造体のメンバに直接アクセスした場合、その一時メモリの解放が正常に行われないバグを修正(64bit版も修正した)。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/CommonCodeGenerator.cpp

    r435 r436  
    22
    33#include <CodeGenerator.h>
     4
     5#ifdef _AMD64_
     6#include "../../BasicCompiler64/opcode.h"
     7#else
     8#include "../../BasicCompiler32/opcode.h"
     9#endif
    410
    511
     
    313319    //////////////////////////////////////////////////////
    314320
    315     //mov rcx,reg
    316     compiler.codeGenerator.op_mov_RR( REG_RCX, reg );
    317 
    318     //call _System_AddNeedFreeTempStructure
    319     extern const UserProc *pSub_System_AddNeedFreeTempStructure;
    320     compiler.codeGenerator.op_call( pSub_System_AddNeedFreeTempStructure );
     321        //mov rcx,reg
     322        op_mov_RR( REG_RCX, reg );
     323
     324        //call _System_AddNeedFreeTempStructure
     325        extern const UserProc *pSub_System_AddNeedFreeTempStructure;
     326        op_call( pSub_System_AddNeedFreeTempStructure );
    321327
    322328    /////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.