Skip to content

Commit 99b7299

Browse files
[NFC] Add some useful crash information in CSApply.
1 parent 7a629a8 commit 99b7299

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/Sema/CSApply.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5977,8 +5977,11 @@ Expr *ExprRewriter::coerceToType(Expr *expr, Type toType,
59775977
}
59785978
}
59795979

5980-
fromType->dump(llvm::errs());
5981-
toType->dump(llvm::errs());
5980+
auto &err = llvm::errs();
5981+
err << "fromType->getCanonicalType() = ";
5982+
fromType->getCanonicalType()->dump(err);
5983+
err << "toType->getCanonicalType() = ";
5984+
toType->getCanonicalType()->dump(err);
59825985
llvm_unreachable("Should be handled above");
59835986
}
59845987

0 commit comments

Comments
 (0)