forked from OSchip/llvm-project
Explicitly initialize all fields to avoid -Wmissing-field-initializers warning.
llvm-svn: 210791
This commit is contained in:
parent
1417b0be3e
commit
96e1ee1ed4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue