[PATCH] D92521: [tsan] Fix build failure with _FORTIFY_SOURCE

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 7 21:11:40 PST 2020


vitalybuka added a comment.

I was able to reproduce.

We don't want interceptors depend on set of include files like with DECLARED_FUNC

I guess simple solution is to remove #include <stdlib.h> from dd_interceptors.cpp and 
extern "C" void *malloc(size_t size);
extern "C" void free(void *ptr);
or move code which needs stdlib into a separate cpp file


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92521/new/

https://reviews.llvm.org/D92521



More information about the llvm-commits mailing list