ROCm / HIPIFY

HIPIFY: Convert CUDA to Portable C++ Code
https://rocm.docs.amd.com/projects/HIPIFY/en/latest/
MIT License
503 stars 70 forks source link

[HIPIFY][build][bug] error: reference to 'CastInfo' is ambiguous #549

Closed emankov closed 2 years ago

emankov commented 2 years ago

hipify-clang build started failing against LLVM ToT of May 17.

In file included from /hipify/src/HipifyAction.cpp:26:
/hipify/src/CUDA2HIP_Scripting.h:43:28: error: reference to 'CastInfo' is ambiguous
typedef std::map<unsigned, CastInfo> ArgCastMap;
                           ^
/hipify/src/CUDA2HIP_Scripting.h:38:8: note: candidate found by name lookup is 'CastInfo'
struct CastInfo {
       ^
/llvm/include/llvm/Support/Casting.h:484:8: note: candidate found by name lookup is 'llvm::CastInfo'
struct CastInfo : public CastIsPossible<To, From> {
       ^

The affected change was merged into LLVM trunk today (May 17):

SHA-1: f156b51aecc676a9051136f6f5cb74e37dd574d1

[LLVM][Casting.h] Update dyn_cast machinery to provide more control over how the casting is performed.

https://reviews.llvm.org/D123901

emankov commented 2 years ago

Fixed with #550.