diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-03-21 17:56:44 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-03-21 17:56:44 +0000 |
commit | bac8b6b39a186ad41db19620a0a0e0fd36f8dfd2 (patch) | |
tree | d8937b20da7d6485775185993928ea102271ca62 /clang/lib/Sema/SemaChecking.cpp | |
parent | c44b35e3be15ac952bffeac491aff4b7e483a6b2 (diff) | |
download | bcm5719-llvm-bac8b6b39a186ad41db19620a0a0e0fd36f8dfd2.tar.gz bcm5719-llvm-bac8b6b39a186ad41db19620a0a0e0fd36f8dfd2.zip |
-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
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index d684928e510..abcccbaf18f 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -4788,6 +4788,8 @@ void Sema::CheckMemaccessArguments(const CallExpr *Call, break; } } + } else if (DestTy->isArrayType()) { + PointeeTy = DestTy; } if (PointeeTy == QualType()) |