r210791 - Explicitly initialize all fields to avoid -Wmissing-field-initializers warning.
Eli Bendersky
eliben at google.com
Thu Jun 12 08:47:57 PDT 2014
Author: eliben
Date: Thu Jun 12 10:47:57 2014
New Revision: 210791
URL: http://llvm.org/viewvc/llvm-project?rev=210791&view=rev
Log:
Explicitly initialize all fields to avoid -Wmissing-field-initializers warning.
Modified:
cfe/trunk/lib/Sema/SemaStmtAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaStmtAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmtAttr.cpp?rev=210791&r1=210790&r2=210791&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAttr.cpp Thu Jun 12 10:47:57 2014
@@ -128,11 +128,12 @@ CheckForIncompatibleAttributes(Sema &S,
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);
More information about the cfe-commits
mailing list