fixed f2c
This commit is contained in:
@@ -1306,7 +1306,21 @@ static bool matchPrototype(SgSymbol *funcSymb, SgExpression *&listArgs, bool isF
|
||||
}
|
||||
}
|
||||
else
|
||||
argInCall->setLhs(SgAddrOp(*argInCall->lhs()));
|
||||
{
|
||||
SgExpression* arr = argInCall->lhs();
|
||||
|
||||
if (options.isOn(O_PL2))
|
||||
{
|
||||
SgType* cast = NULL;
|
||||
if (typeInProtSave->hasBaseType())
|
||||
cast = C_PointerType(C_Type(typeInProtSave->baseType()));
|
||||
else
|
||||
cast = C_PointerType(C_Type(typeInProtSave));
|
||||
argInCall->setLhs(*new SgCastExp(*cast, SgAddrOp(*arr)));
|
||||
}
|
||||
else
|
||||
argInCall->setLhs(SgAddrOp(*arr));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user