Skip to content

Commit

Permalink
Fix a broken LLVM pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanvdc committed Feb 19, 2019
1 parent 875f801 commit d7eac82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/llvm-late-gc-lowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,7 @@ bool LateLowerGCFrame::CleanupIR(Function &F, State *S) {
auto newI = builder.CreateCall(
getOrDefine(jl_intrinsics::GCAllocBytes),
{ CI->getArgOperand(0), CI->getArgOperand(1) });
newI->takeName(CI);

// Set the tag.
auto store = builder.CreateStore(
Expand Down
2 changes: 1 addition & 1 deletion test/llvmpasses/alloc-opt.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

# RUN: julia --startup-file=no %s | opt -load libjulia%shlibext -AllocOpt -LateLowerGCFrame -S - | FileCheck %s
# RUN: julia --startup-file=no %s | opt -load libjulia%shlibext -AllocOpt -LateLowerGCFrame -FinalLowerGC -S - | FileCheck %s

isz = sizeof(UInt) == 8 ? "i64" : "i32"

Expand Down

0 comments on commit d7eac82

Please sign in to comment.