HomePhabricator

[clang-cl][sanitizer] Add -fsanitize-address-use-after-return to clang.

Authored by kda on Fri, Jun 11, 10:13 AM.

Description

[clang-cl][sanitizer] Add -fsanitize-address-use-after-return to clang.

Also:

  • add driver test (fsanitize-use-after-return.c)
  • add basic IR test (asan-use-after-return.cpp)
  • (NFC) cleaned up logic for generating table of __asan_stack_malloc depending on flag.

for issue: https://github.com/google/sanitizers/issues/1394

Reviewed By: vitalybuka

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