Skip to content

Commit 35ba3d7

Browse files
committed
Fix Optional's simple_display
1 parent 2b97bf8 commit 35ba3d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/Basic/AnyValue.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ namespace llvm {
170170
void simple_display(raw_ostream &out, const Optional<T> &opt) {
171171
if (opt) {
172172
simple_display(out, *opt);
173+
} else {
174+
out << "None";
173175
}
174-
out << "None";
175176
}
176177
} // end namespace llvm
177178

0 commit comments

Comments
 (0)