[Sema] Add more strict check for sizeof diagnostics for bzero
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 11 Aug 2016 18:33:15 +0000 (18:33 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 11 Aug 2016 18:33:15 +0000 (18:33 +0000)
commitc73e4c3f890dc1388ee694d7e25de153fe3ed05e
treef9419e2545b3630c5b133bab93eac9e04e3170a0
parent7cdf01ef58ac9d181fd02cdee69102d26ec24a2d
[Sema] Add more strict check for sizeof diagnostics for bzero

Follow-up from r278264 after Joerg's feedback.

Since bzero is not standard, be more strict: also check if the first
argument is a pointer, which harden the check for when it does not come
originally from a builtin.

llvm-svn: 278379
clang/lib/Sema/SemaChecking.cpp