소스 검색

* fix for Mantis #36951: if the instruction only has one operand and it's a reference then don't internal error, but instead return OS_NO

git-svn-id: trunk@44998 -
svenbarth 5 년 전
부모
커밋
03eb114e97
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/aarch64/racpu.pas

+ 2 - 0
compiler/aarch64/racpu.pas

@@ -67,6 +67,8 @@ unit racpu;
       begin
         if ops<1 then
           internalerror(2014122001);
+        if (ops=1) and (operands[1].opr.typ=OPR_REFERENCE) then
+          exit(OS_NO);
         if operands[1].opr.typ<>OPR_REGISTER then
           internalerror(2014122002);
         result:=reg_cgsize(operands[1].opr.reg);