diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-03-15 20:48:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-03-15 20:48:26 +0000 |
commit | 2b2bbee3071cee1b03520d9bf0c80c4f0bbe60eb (patch) | |
tree | 517a88fc08ba9c7a61a5548c85a86c338e798484 /lib/Sema/SemaChecking.cpp | |
parent | 4c14881e86350c8aa12d5182d35ce07860de2325 (diff) |
Provide the specific target type in the -Wnull-conversion warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index f00a655f59..cd24a4f459 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -4076,7 +4076,7 @@ void CheckImplicitConversion(Sema &S, Expr *E, QualType T, if ((E->isNullPointerConstant(S.Context, Expr::NPC_ValueDependentIsNotNull) == Expr::NPCK_GNUNull) && Target->isIntegerType()) { S.Diag(E->getExprLoc(), diag::warn_impcast_null_pointer_to_integer) - << E->getSourceRange() << clang::SourceRange(CC); + << T << E->getSourceRange() << clang::SourceRange(CC); return; } |