Skip to content

Commit 48f3444

Browse files
aviateskIan Atol
and
Ian Atol
committed
Apply suggestions from code review
Co-authored-by: Ian Atol <[email protected]>
1 parent 0346a47 commit 48f3444

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

base/compiler/ssair/EscapeAnalysis/EAUtils.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import InteractiveUtils: gen_call_with_extracted_types_and_kwargs
2525
Evaluates the arguments to the function call, determines its types, and then calls
2626
[`code_escapes`](@ref) on the resulting expression.
2727
As with `@code_typed` and its family, any of `code_escapes` keyword arguments can be given
28-
as the optional arguments like `@code_escpase interp=myinterp myfunc(myargs...)`.
28+
as the optional arguments like `@code_escapes interp=myinterp myfunc(myargs...)`.
2929
"""
3030
macro code_escapes(ex0...)
3131
return gen_call_with_extracted_types_and_kwargs(__module__, :code_escapes, ex0)
@@ -36,7 +36,7 @@ end # @static if EA_AS_PKG
3636
code_escapes(f, argtypes=Tuple{}; [world], [interp]) -> result::EscapeResult
3737
code_escapes(tt::Type{<:Tuple}; [world], [interp]) -> result::EscapeResult
3838
39-
Runs the escape analysis on optimized IR of a genefic function call with the given type signature.
39+
Runs the escape analysis on optimized IR of a generic function call with the given type signature.
4040
Note that the escape analysis runs after inlining, but before any other optimizations.
4141
4242
```julia

base/compiler/ssair/EscapeAnalysis/EscapeAnalysis.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ end
4242

4343
# XXX better to be IdSet{Int}?
4444
const FieldEscape = BitSet
45-
const FieldEscapes = Vector{BitSet}
45+
const FieldEscapes = Vector{FieldEscape}
4646
const ArrayEscapes = IdSet{Int}
4747

4848
"""

0 commit comments

Comments
 (0)