Skip to content

Commit f720a90

Browse files
author
Amritpan Kaur
committed
[TypeCheckConstraints] Add PrintTypesForDebugging for Print Options to ensure printing Type Variables. Without this, Type variables sometimes print as an empty space.
1 parent 35b0346 commit f720a90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ using namespace constraints;
5454
#pragma mark Type variable implementation
5555

5656
void TypeVariableType::Implementation::print(llvm::raw_ostream &OS) {
57-
getTypeVariable()->print(OS, PrintOptions());
57+
PrintOptions PO;
58+
PO.PrintTypesForDebugging = true;
59+
getTypeVariable()->print(OS, PO);
5860

5961
SmallVector<TypeVariableOptions, 4> bindingOptions;
6062
if (canBindToLValue())

0 commit comments

Comments
 (0)