Changeset 392 in dev for trunk/abdev/BasicCompiler_Common/src/LexicalScope.cpp
- Timestamp:
- Feb 20, 2008, 7:44:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/LexicalScope.cpp
r290 r392 76 76 77 77 //使用済みローカル変数の生存チェックを外す 78 BOOST_FOREACH( Variable *pVar, (*pVars) ){ 79 if(pVar->bLiving&&pVar->GetScopeLevel()==level){ 80 pVar->bLiving=0; 78 BOOST_FOREACH( Variable *pVar, (*pVars) ) 79 { 80 if( pVar->isLiving && pVar->GetScopeLevel() == level ) 81 { 82 pVar->isLiving = false; 81 83 pVar->SetScopeEndAddress( compiler.codeGenerator.GetNativeCodeSize() ); 82 84 } … … 115 117 116 118 //同一レベルのレキシカルスコープのみを検知 117 if( !pVar->bLiving) continue;119 if( !pVar->isLiving ) continue; 118 120 if( pVar->GetScopeLevel() != GetNowLevel() ) continue; 119 121
Note:
See TracChangeset
for help on using the changeset viewer.