[ubsan] Enable -fsanitize=vptr on Apple devices and simulators
authorVedant Kumar <vsk@apple.com>
Tue, 28 Aug 2018 18:01:42 +0000 (18:01 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 28 Aug 2018 18:01:42 +0000 (18:01 +0000)
commit9873909b428497dfb5633579c63e97bac7e0a3f7
treecec8140e61ce2e58eafd7fd09188a79d52ad01a0
parent56e79dd048d8e5eab89092f873cf6863671871d6
[ubsan] Enable -fsanitize=vptr on Apple devices and simulators

It seems like an oversight that this check was not always enabled for
on-device or device simulator targets.

Differential Revision: https://reviews.llvm.org/D51239

llvm-svn: 340849
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/fsanitize.c