[PATCH] D153318: [llvm] Refactor BalancedPartitioning for fixing build failure with MSVC

kamlesh kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 17:39:58 PDT 2023


kamleshbhalui added a comment.

ThreadPool.h ends up including immintrin.h from MSVC after builtin generation in clang and It has definitions for replacing one builtins with another.
Clang maintain a enum for all generated builtin but due to above macro replacement enum ends up having two element with same name and it causes multiple definitions error.
There are some other instances where ThreadPool.h is not included directly(i.e. Debuginfod.h).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153318



More information about the llvm-commits mailing list