소스 검색

* vecn: don't use left.location.reference.alignment if left is not in a
LOC_(C)REFERENCE

git-svn-id: trunk@34545 -

Jonas Maebe 8 년 전
부모
커밋
db171702f3
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      compiler/ncgmem.pas

+ 3 - 3
compiler/ncgmem.pas

@@ -867,10 +867,10 @@ implementation
 
          newsize:=def_cgsize(resultdef);
          secondpass(left);
-         if left.location.loc=LOC_CREFERENCE then
-           location_reset_ref(location,LOC_CREFERENCE,newsize,left.location.reference.alignment)
+         if left.location.loc in [LOC_CREFERENCE,LOC_REFERENCE] then
+           location_reset_ref(location,left.location.loc,newsize,left.location.reference.alignment)
          else
-           location_reset_ref(location,LOC_REFERENCE,newsize,left.location.reference.alignment);
+           location_reset_ref(location,LOC_REFERENCE,newsize,resultdef.alignment);
 
          { an ansistring needs to be dereferenced }
          if is_ansistring(left.resultdef) or