Further improvements to error reporting with function types.

Issue #219.
This commit is contained in:
Matt Pharr
2012-04-03 05:55:50 -07:00
parent 920cf63201
commit eb85da81e1
3 changed files with 14 additions and 15 deletions

View File

@@ -328,8 +328,8 @@ lDoTypeConv(const Type *fromType, const Type *toType, Expr **expr,
!Type::Equal(fromPointerType->GetBaseType()->GetAsConstType(),
toPointerType->GetBaseType())) {
if (!failureOk)
Error(pos, "Can't convert between incompatible pointer types "
"\"%s\" and \"%s\" for %s.",
Error(pos, "Can't convert from pointer type \"%s\" to "
"incompatible pointer type \"%s\" for %s.",
fromPointerType->GetString().c_str(),
toPointerType->GetString().c_str(), errorMsgBase);
return false;