summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaCast.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2011-11-15 11:25:38 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2011-11-15 11:25:38 +0000
commitf7ce19400ba4d7e7f17f804490b76035de6fdf5e (patch)
tree283771914d93dd3789c0d463fe2291bdd2eaa1ba /lib/Sema/SemaCast.cpp
parent64482c6ddba162c0c4df07ed4791fb08736d5a4c (diff)
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
Diffstat (limited to 'lib/Sema/SemaCast.cpp')
-rw-r--r--lib/Sema/SemaCast.cpp2
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;
}