From: Aaron Ballman Date: Fri, 6 Jun 2014 13:39:32 +0000 (+0000) Subject: Quieting a false-positive which was causing the sanitizer bots to go red. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71f6fb1fd83ae924abf9b090a039df97a0ba6da6;p=clang Quieting a false-positive which was causing the sanitizer bots to go red. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210333 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaStmtAttr.cpp b/lib/Sema/SemaStmtAttr.cpp index 4e3999bf73..5f73bc1da1 100644 --- a/lib/Sema/SemaStmtAttr.cpp +++ b/lib/Sema/SemaStmtAttr.cpp @@ -69,7 +69,7 @@ static Attr *handleLoopHintAttr(Sema &S, Stmt *St, const AttributeList &A, .Case("interleave_count", LoopHintAttr::InterleaveCount) .Default(LoopHintAttr::Vectorize); - int ValueInt; + int ValueInt = 0; if (Option == LoopHintAttr::Vectorize || Option == LoopHintAttr::Interleave) { if (!ValueInfo) { S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_keyword)