[llvm] ee3f13b - Fix -Wunused-lambda-capture for -DLLVM_ENABLE_ASSERTIONS=off builds after 6556c615f3c3aae8af876806777065961ae20024
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 8 19:04:50 PST 2020
Author: Fangrui Song
Date: 2020-02-08T19:03:58-08:00
New Revision: ee3f13b81dc7a8dd51870743b89b4e0cd3ff293b
URL: https://github.com/llvm/llvm-project/commit/ee3f13b81dc7a8dd51870743b89b4e0cd3ff293b
DIFF: https://github.com/llvm/llvm-project/commit/ee3f13b81dc7a8dd51870743b89b4e0cd3ff293b.diff
LOG: Fix -Wunused-lambda-capture for -DLLVM_ENABLE_ASSERTIONS=off builds after 6556c615f3c3aae8af876806777065961ae20024
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
index ff4d92a24f76..fd2481319570 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
@@ -203,6 +203,7 @@ AMDGPURegisterBankInfo::AMDGPURegisterBankInfo(const GCNSubtarget &ST)
assert(&getRegBank(AMDGPU::SGPRRegBankID) == &AMDGPU::SGPRRegBank &&
&getRegBank(AMDGPU::VGPRRegBankID) == &AMDGPU::VGPRRegBank &&
&getRegBank(AMDGPU::AGPRRegBankID) == &AMDGPU::AGPRRegBank);
+ (void)this;
};
llvm::call_once(InitializeRegisterBankFlag, InitializeRegisterBankOnce);
More information about the llvm-commits
mailing list