Skip to content

Commit

Permalink
Fixes for 1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Aug 7, 2018
1 parent a7140de commit b437610
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ uuid = "929cbde3-209d-540e-8aea-75f648917ca0"
[deps]
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
4 changes: 2 additions & 2 deletions src/core/value/constant.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export null, all_ones, UndefValue, PointerNull
export null, isnull, all_ones, UndefValue, PointerNull

null(typ::LLVMType) = Value(API.LLVMConstNull(ref(typ)))

all_ones(typ::LLVMType) = Value(API.LLVMConstAllOnes(ref(typ)))

Base.isnull(val::Value) = convert(Core.Bool, API.LLVMIsNull(ref(val)))
isnull(val::Value) = convert(Core.Bool, API.LLVMIsNull(ref(val)))


@checked struct UndefValue <: User
Expand Down
2 changes: 1 addition & 1 deletion src/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ end
functions(engine::ExecutionEngine) = ExecutionEngineFunctionSet(engine)

Base.IteratorSize(::ExecutionEngineFunctionSet) = Base.SizeUnknown()
Base.start(::ExecutionEngineFunctionSet) =
Base.iterate(::ExecutionEngineFunctionSet) =
error("Iteration of functions in the execution engine is not supported")

function Base.get(functionset::ExecutionEngineFunctionSet, name::String, default)
Expand Down
1 change: 0 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using LLVM

using Test
import Pkg

@testset "LLVM" begin

Expand Down

0 comments on commit b437610

Please sign in to comment.