Some typetraits are defined twice, delete this part of the code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
is_one_of is used by llvm/include/llvm/Support/FormatProviders.h
are_base_of is used by llvm/include/llvm/IR/DerivedTypes.h and llvm/include/llvm/IR/Constants.h
Comment Actions
@MaskRay is_one_of and are_base_of have been defined in llvm/include/llvm/ADT/STLExtras.h lines 210 to 218, so delete the duplicate code starting at line 1487
Comment Actions
So we have llvm::detail::are_base_of and llvm::are_base_of. The use in llvm/include/llvm/IR/DerivedTypes.h is llvm::are_base_of which you are removing?
Comment Actions
I didn’t find llvm::detail::are_base_of. These two parts of code are both defined in the namespace of llvm.