Index: flang/docs/FIRArrayOperations.md =================================================================== --- flang/docs/FIRArrayOperations.md +++ flang/docs/FIRArrayOperations.md @@ -115,7 +115,7 @@ This operation taken with `array_load`'s captures Fortran's copy-in/copy-out semantics. The first operands of `array_merge_store` is the result of the initial `array_load` operation. While this value could be -retrieved by reference chasiing through the different array operations it is +retrieved by reference chasing through the different array operations it is useful to have it on hand directly for analysis passes since this directly defines the "bounds" of the Fortran statement represented by these operations. The intention is to allow copy-in/copy-out regions to be easily delineated, @@ -187,7 +187,7 @@ The `array_access` provides a reference to a single element from an array value. This is *not* a view in the immutable array, otherwise it couldn't be stored to. It can be see as a logical copy of the element and its position in the array. -Tis reference can be written to and modified withoiut changing the original +Tis reference can be written to and modified without changing the original array. The `array_access` operation is used to fetch the memory reference of an element Index: flang/lib/Common/idioms.cpp =================================================================== --- flang/lib/Common/idioms.cpp +++ flang/lib/Common/idioms.cpp @@ -16,7 +16,7 @@ [[noreturn]] void die(const char *msg, ...) { va_list ap; va_start(ap, msg); - std::fputs("\nfatal internal error: ", stderr); + std::fputs("\n\033[31m\033[1mfatal internal error: \033[0m", stderr); std::vfprintf(stderr, msg, ap); va_end(ap); fputc('\n', stderr); Index: flang/lib/Optimizer/Builder/BoxValue.cpp =================================================================== --- flang/lib/Optimizer/Builder/BoxValue.cpp +++ flang/lib/Optimizer/Builder/BoxValue.cpp @@ -240,7 +240,6 @@ return match( [](const fir::ArrayBoxValue &box) -> bool { return !box.getExtents().empty() && isUndefOp(box.getExtents().back()); - ; }, [](const fir::CharArrayBoxValue &box) -> bool { return !box.getExtents().empty() && isUndefOp(box.getExtents().back());