Skip to content

Commit 246fae5

Browse files
Seelengrabaviatesk
andauthored
Use callsite annotation instead of outlined function
Co-authored-by: Shuhei Kadowaki <[email protected]>
1 parent 0e96f8a commit 246fae5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/hashing.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ hash(x::Any) = hash(x, zero(UInt))
3131
hash(w::WeakRef, h::UInt) = hash(w.value, h)
3232

3333
# Types can't be deleted, so marking as total allows the compiler to look up the hash
34-
@assume_effects :total _typehash(T::Type) = ccall(:jl_type_hash, UInt, (Any,), T)
35-
hash(T::Type, h::UInt) = hash_uint(3h - _typehash(T))
34+
hash(T::Type, h::UInt) = hash_uint(3h - @assume_effects :total ccall(:jl_type_hash, UInt, (Any,), T))
3635

3736
## hashing general objects ##
3837

0 commit comments

Comments
 (0)