Index: clang/tools/amdgpu-arch/AMDGPUArch.cpp =================================================================== --- clang/tools/amdgpu-arch/AMDGPUArch.cpp +++ clang/tools/amdgpu-arch/AMDGPUArch.cpp @@ -12,12 +12,12 @@ //===----------------------------------------------------------------------===// #if defined(__has_include) -#if __has_include("hsa.h") -#define HSA_HEADER_FOUND 1 -#include "hsa.h" -#elif __has_include("hsa/hsa.h") +#if __has_include("hsa/hsa.h") #define HSA_HEADER_FOUND 1 #include "hsa/hsa.h" +#elif __has_include("hsa.h") +#define HSA_HEADER_FOUND 1 +#include "hsa.h" #else #define HSA_HEADER_FOUND 0 #endif