mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Fixed generation of non optimal code in StructRef()
git-svn-id: svn://svn.cc65.org/cc65/trunk@3071 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
763a359114
commit
01104d26ea
@ -1247,10 +1247,10 @@ static void StructRef (ExprDesc* Expr)
|
||||
return;
|
||||
}
|
||||
|
||||
/* If we have a struct pointer that is not already in the primary, load
|
||||
* it now.
|
||||
/* If we have a struct pointer that is an lvalue and not already in the
|
||||
* primary, load it now.
|
||||
*/
|
||||
if (IsTypePtr (Expr->Type)) {
|
||||
if (ED_IsLVal (Expr) && IsTypePtr (Expr->Type)) {
|
||||
|
||||
/* Load into the primary */
|
||||
ExprLoad (CF_NONE, Expr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user