[cfe-commits] r150943 - /cfe/trunk/lib/AST/Expr.cpp

Benjamin Kramer benny.kra at googlemail.com
Sun Feb 19 16:20:48 PST 2012


Author: d0k
Date: Sun Feb 19 18:20:48 2012
New Revision: 150943

URL: http://llvm.org/viewvc/llvm-project?rev=150943&view=rev
Log:
ObjCMessageExpr: Don't leave SelLocsKind uninitialized when the send is implicit.

Fixes PR11929. Found by valgrind.

Modified:
    cfe/trunk/lib/AST/Expr.cpp

Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=150943&r1=150942&r2=150943&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Sun Feb 19 18:20:48 2012
@@ -2979,8 +2979,8 @@
     MyArgs[I] = Args[I];
   }
 
+  SelLocsKind = SelLocsK;
   if (!isImplicit()) {
-    SelLocsKind = SelLocsK;
     if (SelLocsK == SelLoc_NonStandard)
       std::copy(SelLocs.begin(), SelLocs.end(), getStoredSelLocs());
   }





More information about the cfe-commits mailing list