Browse Source

* slash and divn might have an exception as side effect

git-svn-id: trunk@45652 -
florian 5 years ago
parent
commit
b3817f6d92
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/nutils.pas

+ 2 - 2
compiler/nutils.pas

@@ -1425,9 +1425,9 @@ implementation
             tinlinenode(n).may_have_sideeffect_norecurse
            ) or
            ((mhs_exceptions in pmhs_flags(arg)^) and
-            ((n.nodetype in [derefn,vecn]) or
+            ((n.nodetype in [derefn,vecn,divn,slashn]) or
              ((n.nodetype=subscriptn) and is_implicit_pointer_object_type(tsubscriptnode(n).left.resultdef)) or
-             ((n.nodetype in [addn,subn,muln,divn,slashn,unaryminusn]) and (n.localswitches*[cs_check_overflow,cs_check_range]<>[]))
+             ((n.nodetype in [addn,subn,muln,unaryminusn]) and (n.localswitches*[cs_check_overflow,cs_check_range]<>[]))
             )
            ) or
            ((n.nodetype=loadn) and