diff options
author | Eli Bendersky <eliben@google.com> | 2014-06-12 15:47:57 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2014-06-12 15:47:57 +0000 |
commit | 96e1ee1ed4a2449866849a179c159c0885cabfcb (patch) | |
tree | 53e0f2864ae173ef96f84271ddf2f29d0e68c675 /clang/lib | |
parent | 1417b0be3e8fce748a71fd827a2a6a5ce3d9d145 (diff) | |
download | bcm5719-llvm-96e1ee1ed4a2449866849a179c159c0885cabfcb.tar.gz bcm5719-llvm-96e1ee1ed4a2449866849a179c159c0885cabfcb.zip |
Explicitly initialize all fields to avoid -Wmissing-field-initializers warning.
llvm-svn: 210791
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Sema/SemaStmtAttr.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaStmtAttr.cpp b/clang/lib/Sema/SemaStmtAttr.cpp index e98bbec8eee..c0b5ede526c 100644 --- a/clang/lib/Sema/SemaStmtAttr.cpp +++ b/clang/lib/Sema/SemaStmtAttr.cpp @@ -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); |