Skip to content

Commit

Permalink
Fix merge mistakes -- TODO: amend to the appropriate commits instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Apr 8, 2024
1 parent de39614 commit 80e273a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sources/dfmc/llvm-back-end/llvm-back-end-types.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ define method llvm-object-type
let repeated-size-value
= rslotd & ^slot-value(o, ^size-slot-descriptor(rslotd));
let repeated-size
= if (o.^object-class == dylan-value(#"<byte-string>"))
= if (o.^object-class == dylan-value(#"<string>"))
repeated-size-value + 1 // for NUL termination
else
repeated-size-value
Expand Down
5 changes: 2 additions & 3 deletions sources/dfmc/llvm-linker/llvm-link-object.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ define method emit-object-slot
=> ();
let repeated-size-value = ^slot-value(o, ^size-slot-descriptor(slotd));
let (repeated-size, terminated?)
= if (o.^object-class == dylan-value(#"<byte-string>"))
= if (o.^object-class == dylan-value(#"<string>"))
values(repeated-size-value + 1, #t)
else
values(repeated-size-value, #f)
Expand All @@ -256,8 +256,7 @@ define method emit-object-slot
repeated-elements[i] := llvm-raw-byte(back-end, byte);
end;
if (terminated?)
repeated-elements[repeated-size-value]
:= llvm-raw-byte-character(back-end, '\0');
repeated-elements[repeated-size-value] := llvm-raw-byte(back-end, 0);
end if;
else
for (i from 0 below repeated-size)
Expand Down
6 changes: 0 additions & 6 deletions sources/lib/jam/jam-evaluator.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,7 @@ define function jam-expand-arg-colon
if (replace?)
method (name :: <string>) => (modified :: <string>);
let locator = as(<file-locator>, strip-grist(name));
<<<<<<< HEAD

as(<string>,
=======

as(<byte-string>,
>>>>>>> bb1206747 (Remove end-of-line whitespace in all .dylan files)
make(<file-locator>,
directory: locator.locator-directory,
base: locator.locator-base,
Expand Down

0 comments on commit 80e273a

Please sign in to comment.