[llvm] r296021 - [AMDGPU] Shut the warning "getRegUnitWeight hides overload...". NFC.

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 13:51:28 PST 2017


Author: rampitec
Date: Thu Feb 23 15:51:28 2017
New Revision: 296021

URL: http://llvm.org/viewvc/llvm-project?rev=296021&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h

Modified: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h?rev=296021&r1=296020&r2=296021&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.h Thu Feb 23 15:51:28 2017
@@ -26,6 +26,8 @@ class SISubtarget;
 class SIMachineFunctionInfo;
 
 class SIRegisterInfo final : public AMDGPURegisterInfo {
+  using AMDGPUGenRegisterInfo::getRegUnitWeight;
+
 private:
   unsigned SGPRSetID;
   unsigned VGPRSetID;




More information about the llvm-commits mailing list