mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 19:59:14 +02:00
codetools: workaround until CalculateBinaryOperator supports alias types
git-svn-id: trunk@38195 -
This commit is contained in:
parent
fa30c0d956
commit
51c7a42e32
@ -5941,6 +5941,12 @@ var
|
|||||||
Params);
|
Params);
|
||||||
// put result on stack
|
// put result on stack
|
||||||
ExprStack[StackPtr-1]:=ExprStack[StackPtr];
|
ExprStack[StackPtr-1]:=ExprStack[StackPtr];
|
||||||
|
|
||||||
|
// ToDo: handle alias in CalculateBinaryOperator
|
||||||
|
// => Workaround:
|
||||||
|
if NewOperand.Desc<>ExprStack[StackPtr-1].Operand.Desc then
|
||||||
|
ExprStack[StackPtr-1].AliasType:=CleanFindContext; // reset alias type
|
||||||
|
|
||||||
dec(StackPtr);
|
dec(StackPtr);
|
||||||
ExprStack[StackPtr].Operand:=NewOperand;
|
ExprStack[StackPtr].Operand:=NewOperand;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user