-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): Fix incorrect char well-formedness error (#837)
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
chars › char8 | ||
(module | ||
(type $none_=>_none (func)) | ||
(type $none_=>_i32 (func (result i32))) | ||
(type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) | ||
(import \"_grainEnv\" \"mem\" (memory $0 0)) | ||
(import \"_grainEnv\" \"relocBase\" (global $import__grainEnv_0_relocBase_0 i32)) | ||
(import \"GRAIN$MODULE$runtime/gc\" \"GRAIN$EXPORT$malloc\" (global $import_GRAIN$MODULE$runtime/gc_0_GRAIN$EXPORT$malloc_0 (mut i32))) | ||
(import \"GRAIN$MODULE$runtime/gc\" \"malloc\" (func $import_GRAIN$MODULE$runtime/gc_0_malloc_0 (param i32 i32) (result i32))) | ||
(global $global_1 i32 (i32.const 0)) | ||
(export \"memory\" (memory $0)) | ||
(export \"_gmain\" (func $_gmain)) | ||
(export \"_start\" (func $_start)) | ||
(export \"GRAIN$TABLE_SIZE\" (global $global_1)) | ||
(func $_gmain (; has Stack IR ;) (result i32) | ||
(local $0 i32) | ||
(tuple.extract 0 | ||
(tuple.make | ||
(block (result i32) | ||
(i32.store | ||
(local.tee $0 | ||
(tuple.extract 0 | ||
(tuple.make | ||
(call $import_GRAIN$MODULE$runtime/gc_0_malloc_0 | ||
(global.get $import_GRAIN$MODULE$runtime/gc_0_GRAIN$EXPORT$malloc_0) | ||
(i32.const 8) | ||
) | ||
(i32.const 0) | ||
) | ||
) | ||
) | ||
(i32.const 2) | ||
) | ||
(i32.store offset=4 | ||
(local.get $0) | ||
(i32.const 11050210) | ||
) | ||
(local.get $0) | ||
) | ||
(local.get $0) | ||
) | ||
) | ||
) | ||
(func $_start (; has Stack IR ;) | ||
(drop | ||
(call $_gmain) | ||
) | ||
) | ||
;; custom section \"cmi\", size 237 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters