Skip to content

Commit d1353cf

Browse files
committed
Fix minor typo
1 parent a66a09c commit d1353cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,13 +2906,13 @@ static void genAtomicRead(lower::AbstractConverter &converter,
29062906
// implicit cast.
29072907

29082908
// An atomic read of form `v = x` would (without implicit casting)
2909-
// lower to `omp.atomic.read %v = %x : !fir.ref<type1>, !fir.ref<typ2>,
2909+
// lower to `omp.atomic.read %v = %x : !fir.ref<type1>, !fir.ref<type2>,
29102910
// type2`. This implicit casting will rather generate the following FIR:
29112911
//
29122912
// %alloca = fir.alloca type2
29132913
// omp.atomic.read %alloca = %x : !fir.ref<type2>, !fir.ref<type2>, type2
29142914
// %load = fir.load %alloca : !fir.ref<type2>
2915-
// %cvt = fir.convert %load: (type2) -> type1
2915+
// %cvt = fir.convert %load : (type2) -> type1
29162916
// fir.store %cvt to %v : !fir.ref<type1>
29172917

29182918
// These sequence of operations is thread-safe since each thread allocates

0 commit comments

Comments
 (0)