Skip to content

Commit 5453b6a

Browse files
authoredAug 15, 2021
fix: typo spelling grammar (JuliaLang#41883)
1 parent 8cad32b commit 5453b6a

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed
 

Diff for: ‎base/compiler/tfuncs.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ function apply_type_nothrow(argtypes::Array{Any, 1}, @nospecialize(rt))
11771177
else
11781178
return false
11791179
end
1180-
# We know the apply_type is well formed. Oherwise our rt would have been
1180+
# We know the apply_type is well formed. Otherwise our rt would have been
11811181
# Bottom (or Type).
11821182
(headtype === Union) && return true
11831183
isa(rt, Const) && return true

Diff for: ‎src/cgutils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static Value *julia_pgv(jl_codectx_t &ctx, const char *cname, void *addr)
234234
false, GlobalVariable::PrivateLinkage,
235235
NULL, localname);
236236
// LLVM passes sometimes strip metadata when moving load around
237-
// since the load at the new location satisfy the same condition as the origional one.
237+
// since the load at the new location satisfy the same condition as the original one.
238238
// Mark the global as constant to LLVM code using our own metadata
239239
// which is much less likely to be striped.
240240
gv->setMetadata("julia.constgv", MDNode::get(gv->getContext(), None));
@@ -2407,7 +2407,7 @@ static Value *emit_arrayptr_internal(jl_codectx_t &ctx, const jl_cgval_t &tinfo,
24072407
ctx.builder.CreateStructGEP(jl_array_llvmt,
24082408
emit_bitcast(ctx, t, jl_parray_llvmt),
24092409
0); // index (not offset) of data field in jl_parray_llvmt
2410-
// Normally allocated array of 0 dimention always have a inline pointer.
2410+
// Normally allocated array of 0 dimension always have a inline pointer.
24112411
// However, we can't rely on that here since arrays can also be constructed from C pointers.
24122412
MDNode *tbaa = arraytype_constshape(tinfo.typ) ? tbaa_const : tbaa_arrayptr;
24132413
PointerType *PT = cast<PointerType>(addr->getType());

Diff for: ‎src/features_x86.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ JL_FEATURE_DEF(bmi, 32 * 2 + 3, 0)
3333
// JL_FEATURE_DEF(hle, 32 * 2 + 4, 0) // Not used and gone in LLVM 5.0
3434
JL_FEATURE_DEF(avx2, 32 * 2 + 5, 0)
3535
JL_FEATURE_DEF(bmi2, 32 * 2 + 8, 0)
36-
// JL_FEATURE_DEF(invpcid, 32 * 2 + 10, 0) // Priviledged instruction
36+
// JL_FEATURE_DEF(invpcid, 32 * 2 + 10, 0) // Privileged instruction
3737
JL_FEATURE_DEF(rtm, 32 * 2 + 11, 0)
3838
// JL_FEATURE_DEF(mpx, 32 * 2 + 14, 0) // Deprecated in LLVM 10.0
3939
JL_FEATURE_DEF(avx512f, 32 * 2 + 16, 0)

Diff for: ‎src/gf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ static void invalidate_external(jl_method_instance_t *mi, size_t max_world) {
13511351
jl_printf((JL_STREAM*)STDERR_FILENO, "error in invalidation callback: ");
13521352
jl_static_show((JL_STREAM*)STDERR_FILENO, jl_current_exception());
13531353
jl_printf((JL_STREAM*)STDERR_FILENO, "\n");
1354-
jlbacktrace(); // writen to STDERR_FILENO
1354+
jlbacktrace(); // written to STDERR_FILENO
13551355
}
13561356
}
13571357
}

Diff for: ‎src/interpreter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ static jl_value_t *eval_body(jl_array_t *stmts, interpreter_state *s, size_t ip,
516516
s->continue_at = 0;
517517
continue;
518518
}
519-
else { // a real exeception
519+
else { // a real exception
520520
ip = catch_ip;
521521
continue;
522522
}

Diff for: ‎src/llvm-late-gc-lowering.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ State LateLowerGCFrame::LocalScan(Function &F) {
15731573
for (Use &U : CI->arg_operands()) {
15741574
// Find all callee rooted arguments.
15751575
// Record them instead of simply remove them from live values here
1576-
// since they can be useful during refinment
1576+
// since they can be useful during refinement
15771577
// (e.g. to remove roots of objects that are refined to these)
15781578
Value *V = U;
15791579
if (isa<Constant>(V) || !isa<PointerType>(V->getType()) ||

Diff for: ‎src/llvm-lower-handlers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ bool LowerExcHandlers::runOnFunction(Function &F) {
176176

177177
/* Step 2: EH Frame lowering */
178178
// Allocate stack space for each handler. We allocate these as separate
179-
// allocas so the optimizer can later merge and reaarange them if it wants
179+
// allocas so the optimizer can later merge and rearrange them if it wants
180180
// to.
181181
Value *handler_sz = ConstantInt::get(Type::getInt32Ty(F.getContext()),
182182
sizeof(jl_handler_t));

Diff for: ‎test/compiler/inference.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ const DenseIdx = Union{IntRange,Integer}
26692669
foo_26724((result..., length(r)), I...)
26702670
@test @inferred(foo_26724((), 1:4, 1:5, 1:6)) === (4, 5, 6)
26712671

2672-
# Non uniformity in expresions with PartialTypeVar
2672+
# Non uniformity in expressions with PartialTypeVar
26732673
@test Core.Compiler.:(Core.Compiler.PartialTypeVar(TypeVar(:N), true, true), TypeVar)
26742674
let N = TypeVar(:N)
26752675
@test Core.Compiler.apply_type_nothrow([Core.Compiler.Const(NTuple),

Diff for: ‎test/compiler/irpasses.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ let nt = (a=1, b=2)
128128
@test_throws ArgumentError blah31139(nt)
129129
end
130130

131-
# Expr(:new) annoted as PartialStruct
131+
# Expr(:new) annotated as PartialStruct
132132
struct FooPartial
133133
x
134134
y

Diff for: ‎test/show.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ end
18251825
@test showstr(Dict(true=>false)) == "Dict{Bool, Bool}(1 => 0)"
18261826
@test showstr(Dict((1 => 2) => (3 => 4))) == "Dict((1 => 2) => (3 => 4))"
18271827

1828-
# issue #27979 (dislaying arrays of pairs containing arrays as first member)
1828+
# issue #27979 (displaying arrays of pairs containing arrays as first member)
18291829
@test replstr([[1.0]=>1.0]) == "1-element Vector{Pair{Vector{Float64}, Float64}}:\n [1.0] => 1.0"
18301830

18311831
# issue #28159

0 commit comments

Comments
 (0)
Please sign in to comment.