diff options
Diffstat (limited to 'lib/Sema/SemaCast.cpp')
-rw-r--r-- | lib/Sema/SemaCast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |