From da9e2524917dcc9e55391968782ec55432213220 Mon Sep 17 00:00:00 2001 From: Huihui Zhang Date: Fri, 4 Oct 2019 20:04:34 +0000 Subject: [PATCH] [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); ^ {} llvm-svn: 373784 --- llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp index 2ec902fa3ddb..ba0820ac4114 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp @@ -352,7 +352,7 @@ AMDGPURegisterBankInfo::getInstrAlternativeMappings( { { AMDGPU::SCCRegBankID }, 1 } }; - return addMappingFromTable<1>(MI, MRI, { 0 }, Table); + return addMappingFromTable<1>(MI, MRI, {{ 0 }}, Table); } LLVM_FALLTHROUGH;