diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-04-27 18:48:59 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-04-27 18:48:59 +0000 |
commit | 134cb4442d6205e0226944ead4c7ede425fba206 (patch) | |
tree | aa7e41fe0f5b4e7d716e64ad5100250b93feaf63 /lib/Sema/SemaChecking.cpp | |
parent | 67d097e1232b7d66f58989c16a45b8a11721f76e (diff) |
Heh, funny thing, 'void' isn't a POD type. Nice of us to suggest it to
silence this warning. ;]
Fixed that obvious bug and added a bit more testing as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130318 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 6b219612d1..7ee0eac370 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -1810,7 +1810,7 @@ void Sema::CheckMemsetArguments(const CallExpr *Call) { QualType DestTy = Dest->getType(); if (const PointerType *DestPtrTy = DestTy->getAs<PointerType>()) { QualType PointeeTy = DestPtrTy->getPointeeType(); - if (!PointeeTy->isPODType()) { + if (!PointeeTy->isPODType() && !PointeeTy->isVoidType()) { DiagRuntimeBehavior( Dest->getExprLoc(), Dest, PDiag(diag::warn_non_pod_memset) |