From: Abramo Bagnara Date: Tue, 15 Nov 2011 11:25:38 +0000 (+0000) Subject: Fixed a cut&paste error introduced in r141336. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7ce19400ba4d7e7f17f804490b76035de6fdf5e;p=clang Fixed a cut&paste error introduced in r141336. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144637 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaCast.cpp b/lib/Sema/SemaCast.cpp index 20742a0c35..0250b3e380 100644 --- a/lib/Sema/SemaCast.cpp +++ b/lib/Sema/SemaCast.cpp @@ -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; }