From 6d805588f210ea4edf67e75ea4eea5f7627ab185 Mon Sep 17 00:00:00 2001 From: ghostplant <ghostplant@qq.com> Date: Sat, 1 Feb 2020 17:24:52 +0000 Subject: [PATCH] Allow compilation for Amdgpu-target Gfx1010 --- clang/lib/Driver/ToolChains/Hcc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Driver/ToolChains/Hcc.cpp b/clang/lib/Driver/ToolChains/Hcc.cpp index e54dd2ff6c993..a12348028d5a0 100755 --- a/clang/lib/Driver/ToolChains/Hcc.cpp +++ b/clang/lib/Driver/ToolChains/Hcc.cpp @@ -172,8 +172,8 @@ namespace bool is_valid(const std::string& gfxip) { - static constexpr std::array<const char*, 5u> valid = { - { "gfx701", "gfx803", "gfx900", "gfx906", "gfx908" }}; + static constexpr std::array<const char*, 6u> valid = { + { "gfx701", "gfx803", "gfx900", "gfx906", "gfx908", "gfx1010" }}; return std::find(valid.cbegin(), valid.cend(), gfxip) != valid.cend(); }