commit | bac8b6b39a186ad41db19620a0a0e0fd36f8dfd2 | [log] [tgz] |
---|---|---|
author | Nico Weber <nicolasweber@gmx.de> | Sat Mar 21 17:56:44 2015 +0000 |
committer | Nico Weber <nicolasweber@gmx.de> | Sat Mar 21 17:56:44 2015 +0000 |
tree | d8937b20da7d6485775185993928ea102271ca62 | |
parent | c44b35e3be15ac952bffeac491aff4b7e483a6b2 [diff] [blame] |
-Wdynamic-class-memaccess: Also warn about array types. It looks like not warning on this was an oversight in the original implementation of this warning. llvm-svn: 232900
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index d684928..abcccba 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp
@@ -4788,6 +4788,8 @@ break; } } + } else if (DestTy->isArrayType()) { + PointeeTy = DestTy; } if (PointeeTy == QualType())