From 78468e48cf30317e8db71d4b3e29e3cd9a449190 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Thu, 23 Feb 2017 21:51:28 +0000 Subject: [PATCH] [AMDGPU] Shut the warning "getRegUnitWeight hides overload...". NFC. Clang issues warning about hidden overload. That was intended, so add "using AMDGPUGenRegisterInfo::getRegUnitWeight;" to mute it. llvm-svn: 296021 --- llvm/lib/Target/AMDGPU/SIRegisterInfo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h index 844f0317a1e7..258de19a17b0 100644 --- a/llvm/lib/Target/AMDGPU/SIRegisterInfo.h +++ b/llvm/lib/Target/AMDGPU/SIRegisterInfo.h @@ -26,6 +26,8 @@ class SISubtarget; class SIMachineFunctionInfo; class SIRegisterInfo final : public AMDGPURegisterInfo { + using AMDGPUGenRegisterInfo::getRegUnitWeight; + private: unsigned SGPRSetID; unsigned VGPRSetID;