浏览代码

* 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);