Explicitly initialize all fields to avoid -Wmissing-field-initializers warning.
authorEli Bendersky <eliben@google.com>
Thu, 12 Jun 2014 15:47:57 +0000 (15:47 +0000)
committerEli Bendersky <eliben@google.com>
Thu, 12 Jun 2014 15:47:57 +0000 (15:47 +0000)
llvm-svn: 210791

clang/lib/Sema/SemaStmtAttr.cpp

index e98bbec..c0b5ede 100644 (file)
@@ -128,11 +128,12 @@ CheckForIncompatibleAttributes(Sema &S, SmallVectorImpl<const Attr *> &Attrs) {
     bool ValueIsSet;
     bool Enabled;
     int Value;
-  } Options[] = {
-    {LoopHintAttr::Vectorize, LoopHintAttr::VectorizeWidth},
-    {LoopHintAttr::Interleave, LoopHintAttr::InterleaveCount},
-    {LoopHintAttr::Unroll, LoopHintAttr::UnrollCount}
-  };
+  } Options[] = {{LoopHintAttr::Vectorize, LoopHintAttr::VectorizeWidth, false,
+                  false, false, 0},
+                 {LoopHintAttr::Interleave, LoopHintAttr::InterleaveCount,
+                  false, false, false, 0},
+                 {LoopHintAttr::Unroll, LoopHintAttr::UnrollCount, false, false,
+                  false, 0}};
 
   for (const auto *I : Attrs) {
     const LoopHintAttr *LH = dyn_cast<LoopHintAttr>(I);