[llvm] 6507e13 - [NFC] Add { } to silence compiler warning [-Wmissing-braces].
Huihui Zhang via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 17:21:43 PST 2019
Author: Huihui Zhang
Date: 2019-12-09T17:19:34-08:00
New Revision: 6507e13589687b40530dedc4dec670f2c1bfdc71
URL: https://github.com/llvm/llvm-project/commit/6507e13589687b40530dedc4dec670f2c1bfdc71
DIFF: https://github.com/llvm/llvm-project/commit/6507e13589687b40530dedc4dec670f2c1bfdc71.diff
LOG: [NFC] Add { } to silence compiler warning [-Wmissing-braces].
../llvm/lib/Target/PowerPC/PPCISelLowering.cpp:5371:37: warning: suggest braces around initialization of subobject [-Wmissing-braces]
std::array<EVT, 2> ReturnTypes = {MVT::Other, MVT::Glue};
^~~~~~~~~~~~~~~~~~~~~
{ }
Added:
Modified:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index b6ba591b0ecf..dce1a02704bb 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -5368,7 +5368,7 @@ SDValue PPCTargetLowering::FinishCall(
return DAG.getNode(CallOpc, dl, MVT::Other, Ops);
}
- std::array<EVT, 2> ReturnTypes = {MVT::Other, MVT::Glue};
+ std::array<EVT, 2> ReturnTypes = {{MVT::Other, MVT::Glue}};
Chain = DAG.getNode(CallOpc, dl, ReturnTypes, Ops);
Glue = Chain.getValue(1);
More information about the llvm-commits
mailing list