HomePhabricator

Emit -Wfortify-source using DiagRuntimeBehaviour

Authored by erik.pilkington on Mar 26 2019, 4:21 PM.

Description

Emit -Wfortify-source using DiagRuntimeBehaviour

This fixes a false positive on the following, where st is configured to have
different sizes based on some preprocessor logic:

if (sizeof(buf) == sizeof(*st))
  memcpy(&buf, st, sizeof(*st));

llvm-svn: 357041

Details

Committed
erik.pilkingtonMar 26 2019, 4:21 PM
Parents
rG14f6d1527c70: [Sema] Fix an assert when a block captures a constexpr local
Branches
Unknown
Tags
Unknown