]> granicus.if.org Git - clang/commitdiff
Quieting a false-positive which was causing the sanitizer bots to go red.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 6 Jun 2014 13:39:32 +0000 (13:39 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 6 Jun 2014 13:39:32 +0000 (13:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210333 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAttr.cpp

index 4e3999bf737e0732361ee423e0eea2d6103d0706..5f73bc1da11c932596e218ad9b98a84f569aa4a9 100644 (file)
@@ -69,7 +69,7 @@ static Attr *handleLoopHintAttr(Sema &S, Stmt *St, const AttributeList &A,
           .Case("interleave_count", LoopHintAttr::InterleaveCount)\r
           .Default(LoopHintAttr::Vectorize);\r
 \r
-  int ValueInt;\r
+  int ValueInt = 0;\r
   if (Option == LoopHintAttr::Vectorize || Option == LoopHintAttr::Interleave) {\r
     if (!ValueInfo) {\r
       S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_keyword)\r