add basic constant handling to subscript nodes, avoid ie20060521 when building rgobj.pas with -O3/-O4

git-svn-id: trunk@26532 -
This commit is contained in:
Károly Balogh 2014-01-20 12:00:48 +00:00
parent a57df5f0dd
commit 5e15e4b07d
2 changed files with 2 additions and 0 deletions

View File

@ -404,6 +404,7 @@ implementation
LOC_REFERENCE,
LOC_CREFERENCE:
;
LOC_CONSTANT,
LOC_REGISTER,
LOC_CREGISTER,
LOC_MMREGISTER,

View File

@ -800,6 +800,7 @@ implementation
else
begin
case left.expectloc of
LOC_CONSTANT,
LOC_REGISTER,
LOC_SUBSETREG:
// can happen for function results on win32 and darwin/x86