Skip to content

Commit b34cf95

Browse files
[DiagEngine] Make localizationSaver not optional and update comment
1 parent f676066 commit b34cf95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/AST/DiagnosticEngine.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,10 @@ namespace swift {
725725
/// diagnostic message.
726726
std::unique_ptr<diag::LocalizationProducer> localization;
727727

728-
/// This allocator will retain localized diagnostic strings for the duration
729-
/// of compiler invocation.
728+
/// This allocator will retain localized diagnostic strings containing the
729+
/// diagnostic's message and identifier for the duration of compiler invocation.
730730
llvm::BumpPtrAllocator localizationAllocator;
731-
llvm::Optional<llvm::StringSaver> localizationSaver;
731+
llvm::StringSaver localizationSaver;
732732

733733
/// The number of open diagnostic transactions. Diagnostics are only
734734
/// emitted once all transactions have closed.

0 commit comments

Comments
 (0)