-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #1144: crash to broken local block count if different in src/tgt
- Loading branch information
1 parent
323fe76
commit 4b5b13c
Showing
3 changed files
with
15 additions
and
2 deletions.
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
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,13 @@ | ||
define void @src(ptr %0, i32 %1) { | ||
%3 = call ptr @memrchr(ptr %0, i32 %1, i64 7) | ||
ret void | ||
} | ||
|
||
define void @tgt(ptr %0, i32 %1) { | ||
%stack = call ptr @myalloc() | ||
call ptr @memrchr(ptr %0, i32 %1, i64 7) | ||
ret void | ||
} | ||
|
||
declare ptr @memrchr(ptr, i32, i64) | ||
declare ptr @myalloc() allockind("alloc") |