summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-03-15 20:48:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-03-15 20:48:26 +0000
commite7fd58006d5ef235f5922f2613640f159ec61acb (patch)
tree452be1ea3612dcec373724f68c4b3bbca67680ce /clang/lib/Sema/SemaChecking.cpp
parentd74560b170701344b1a68bb188a2886792097f74 (diff)
downloadbcm5719-llvm-e7fd58006d5ef235f5922f2613640f159ec61acb.tar.gz
bcm5719-llvm-e7fd58006d5ef235f5922f2613640f159ec61acb.zip
Provide the specific target type in the -Wnull-conversion warning.
llvm-svn: 152835
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index f00a655f59c..cd24a4f4590 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud