Fixed a cut&paste error introduced in r141336.

llvm-svn: 144637
This commit is contained in:
Abramo Bagnara 2011-11-15 11:25:38 +00:00
parent e14ef7e6f8
commit 9847e744e2
1 changed files with 1 additions and 1 deletions

View File

@ -2001,7 +2001,7 @@ void CastOperation::CheckCStyleCast() {
DestType->isArithmeticType()) {
Self.Diag(SrcExpr.get()->getLocStart(),
diag::err_cast_pointer_to_non_pointer_int)
<< SrcType << SrcExpr.get()->getSourceRange();
<< DestType << SrcExpr.get()->getSourceRange();
SrcExpr = ExprError();
return;
}