@@ -271,7 +271,6 @@ namespace iast
271
271
mdTypeRef targetMethodTypeRef = 0 ;
272
272
mdMemberRef targetMethodRef = 0 ;
273
273
mdTypeRef targetTypeRef = 0 ;
274
- bool isRefStruct = false ;
275
274
std::vector<mdTypeRef> paramTypeRefs;
276
275
std::vector<mdMemberRef> targetMethodRefCandidates;
277
276
hr = module->FindTypeRefByName (_targetMethodType.c_str (), &targetMethodTypeRef);
@@ -341,7 +340,7 @@ namespace iast
341
340
342
341
if (targetMethodRef != 0 )
343
342
{
344
- return new DataflowAspectReference (moduleAspects, this , targetMethodRef, targetTypeRef, isRefStruct, paramTypeRefs);
343
+ return new DataflowAspectReference (moduleAspects, this , targetMethodRef, targetTypeRef, paramTypeRefs);
345
344
}
346
345
}
347
346
return nullptr ;
@@ -354,7 +353,7 @@ namespace iast
354
353
355
354
// ------------------------------
356
355
357
- DataflowAspectReference::DataflowAspectReference (ModuleAspects* moduleAspects, DataflowAspect* aspect, mdMemberRef method, mdTypeRef type, bool isRefStruct , const std::vector<mdTypeRef>& paramType)
356
+ DataflowAspectReference::DataflowAspectReference (ModuleAspects* moduleAspects, DataflowAspect* aspect, mdMemberRef method, mdTypeRef type, const std::vector<mdTypeRef>& paramType)
358
357
{
359
358
this ->_moduleAspects = moduleAspects;
360
359
this ->_module = moduleAspects->_module ;
@@ -587,17 +586,15 @@ namespace iast
587
586
continue ;
588
587
}
589
588
590
- auto instructionInfo =
591
- processor->StackAnalysis ()->GetInstruction (instructionToProcess.instruction );
589
+ auto instructionInfo = processor->StackAnalysis ()->GetInstruction (instructionToProcess.instruction );
592
590
auto methodSig = instructionInfo->GetArgumentSignature ();
593
591
int paramCount = methodSig->GetEffectiveParamCount ();
594
592
for (auto iInfo : processor->StackAnalysis ()->LocateCallParamInstructions (
595
593
instruction,
596
594
paramCount - _aspect->_paramShift [x] - 1 )) // Locate param load instruction
597
595
{
598
596
auto paramType = _targetParamTypeToken[x];
599
- processor->InsertAfter (iInfo->_instruction ,
600
- processor->NewILInstr (CEE_BOX, paramType, true ));
597
+ processor->InsertAfter (iInfo->_instruction , processor->NewILInstr (CEE_BOX, paramType, true ));
601
598
602
599
// Figure out if param is byref
603
600
if (iInfo->IsArgument ())
@@ -606,8 +603,7 @@ namespace iast
606
603
auto param = sig->_params [iInfo->_instruction ->m_Arg32 ];
607
604
if (param->IsByRef ())
608
605
{
609
- processor->InsertAfter (iInfo->_instruction ,
610
- processor->NewILInstr (CEE_LDOBJ, paramType, true ));
606
+ processor->InsertAfter (iInfo->_instruction , processor->NewILInstr (CEE_LDOBJ, paramType, true ));
611
607
}
612
608
}
613
609
0 commit comments