Skip to content

Commit c7e1848

Browse files
committed
[move-only-addr] Add some clarifying MARKs.
1 parent 1710f6f commit c7e1848

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyAddressChecker.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
using namespace swift;
154154

155155
//===----------------------------------------------------------------------===//
156-
// MARK: Utilities
156+
// MARK: Diagnostic Utilities
157157
//===----------------------------------------------------------------------===//
158158

159159
template <typename... T, typename... U>
@@ -342,6 +342,10 @@ void DiagnosticEmitter::emitAddressDiagnosticNoCopy(
342342
diag::sil_moveonlychecker_consuming_use_here);
343343
}
344344

345+
//===----------------------------------------------------------------------===//
346+
// MARK: Memory Utilities
347+
//===----------------------------------------------------------------------===//
348+
345349
static bool memInstMustInitialize(Operand *memOper) {
346350
SILValue address = memOper->get();
347351

0 commit comments

Comments
 (0)