[llvm] r373784 - [NFC] Add { } to silence compiler warning [-Wmissing-braces].
Huihui Zhang via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 13:04:34 PDT 2019
Author: huihuiz
Date: Fri Oct 4 13:04:34 2019
New Revision: 373784
URL: http://llvm.org/viewvc/llvm-project?rev=373784&view=rev
Log:
[NFC] Add { } to silence compiler warning [-Wmissing-braces].
../llvm-project/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp:355:48: warning: suggest braces around initialization of subobject [-Wmissing-braces]
return addMappingFromTable<1>(MI, MRI, { 0 }, Table);
^
{}
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp?rev=373784&r1=373783&r2=373784&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp Fri Oct 4 13:04:34 2019
@@ -352,7 +352,7 @@ AMDGPURegisterBankInfo::getInstrAlternat
{ { AMDGPU::SCCRegBankID }, 1 }
};
- return addMappingFromTable<1>(MI, MRI, { 0 }, Table);
+ return addMappingFromTable<1>(MI, MRI, {{ 0 }}, Table);
}
LLVM_FALLTHROUGH;
More information about the llvm-commits
mailing list