r210333 - Quieting a false-positive which was causing the sanitizer bots to go red.

Aaron Ballman aaron at aaronballman.com
Fri Jun 6 06:39:32 PDT 2014


Author: aaronballman
Date: Fri Jun  6 08:39:32 2014
New Revision: 210333

URL: http://llvm.org/viewvc/llvm-project?rev=210333&view=rev
Log:
Quieting a false-positive which was causing the sanitizer bots to go red.

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=210333&r1=210332&r2=210333&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAttr.cpp Fri Jun  6 08:39:32 2014
@@ -69,7 +69,7 @@ static Attr *handleLoopHintAttr(Sema &S,
           .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)





More information about the cfe-commits mailing list