Skip to content

Commit

Permalink
Just use Base.llvmcall again now that JuliaLang/julia#28172 is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoolen committed Jul 20, 2018
1 parent a9d21f7 commit 8b18539
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/FunctionWrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ __precompile__(true)

module FunctionWrappers

using Base: llvmcall

# Used to bypass NULL check
@inline function assume(v::Bool)
llvmcall(("declare void @llvm.assume(i1)",
Base.llvmcall(("declare void @llvm.assume(i1)",
"""
%v = trunc i8 %0 to i1
call void @llvm.assume(i1 %v)
Expand Down

0 comments on commit 8b18539

Please sign in to comment.