aboutsummaryrefslogtreecommitdiff
path: root/fib_ltI.ll
diff options
context:
space:
mode:
authorCamil Staps2021-01-08 09:31:50 +0100
committerCamil Staps2021-01-08 09:31:50 +0100
commitc1713f3ee00eb507ea25f83390467f86a58674d9 (patch)
tree400cb44b139d6cd3f3878d214db9f4c7ad95a9cc /fib_ltI.ll
parentAdd version of nfib without strictness analysis (diff)
Use malloc to allocate heap and stack
Diffstat (limited to 'fib_ltI.ll')
-rw-r--r--fib_ltI.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/fib_ltI.ll b/fib_ltI.ll
index 3c26df7..f8a14a2 100644
--- a/fib_ltI.ll
+++ b/fib_ltI.ll
@@ -57,8 +57,8 @@ define private i64 @_s2(i64 %arg, i64** %globasp) {
}
define i64 @main() {
- %heap = bitcast [100000000 x i64]* @heap to i64*
- %astack = bitcast [10000 x i64*]* @astack to i64**
+ %heap = call i64* @_alloc_heap(i64 10000)
+ %astack = call i64** @_alloc_a_stack(i64 10000)
%r = call i64 @_s2(i64 43, i64** %astack)