Skip to content

Commit

Permalink
Fix packed array error crossing word boundaries on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
demoitem committed Nov 20, 2020
1 parent 2c6780b commit 820b381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions m3-sys/llvm/llvm9/src/M3CG_LLVM.m3
Original file line number Diff line number Diff line change
Expand Up @@ -765,12 +765,12 @@ PROCEDURE NewArrayRefOfMetadataRef

PROCEDURE NewArrayRefOfint64
( ElemCt : CARDINAL;
VAR (*OUT*) Open : REF ARRAY OF int64_t;
VAR (*OUT*) Open : REF ARRAY OF uint64_t;
VAR (*OUT*) ArrRef : ArrayRefOfint64_t
) =
BEGIN
IF ElemCt > 0 THEN
Open := NEW ( REF ARRAY OF int64_t , ElemCt );
Open := NEW ( REF ARRAY OF uint64_t , ElemCt );
ArrRef . Data := ADR (Open[0]);
ELSE
Open := NIL;
Expand Down Expand Up @@ -6633,7 +6633,7 @@ PROCEDURE Expr(self : U; t1, t2, t3, t4, t5, t6, t7, t8, t9 ,t10: INTEGER := -1)
VAR
a := ARRAY [0..9] OF INTEGER {t1, t2, t3, t4, t5, t6, t7, t8, t9, t10};
pos: INTEGER := LAST(a);
paramsArr : REF ARRAY OF int64_t;
paramsArr : REF ARRAY OF uint64_t;
paramsInt64 : LLVMTypes.ArrayRefOfint64_t;
BEGIN
WHILE pos >= 0 AND a[pos] = -1 DO DEC(pos) END;
Expand Down

0 comments on commit 820b381

Please sign in to comment.