]> granicus.if.org Git - clang/commitdiff
Fixed a cut&paste error introduced in r141336.
authorAbramo Bagnara <abramo.bagnara@gmail.com>
Tue, 15 Nov 2011 11:25:38 +0000 (11:25 +0000)
committerAbramo Bagnara <abramo.bagnara@gmail.com>
Tue, 15 Nov 2011 11:25:38 +0000 (11:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144637 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCast.cpp

index 20742a0c35a6ab0a745daa762db0ef7dc09d47b1..0250b3e3800cabdf81c107b26455a0aaef6543ad 100644 (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;
     }