[cfe-commits] r123482 - /cfe/trunk/lib/Sema/SemaExprObjC.cpp

Ted Kremenek kremenek at apple.com
Fri Jan 14 14:31:34 PST 2011


Author: kremenek
Date: Fri Jan 14 16:31:34 2011
New Revision: 123482

URL: http://llvm.org/viewvc/llvm-project?rev=123482&view=rev
Log:
Remove unused store to variable 'Name'.  Found by clang static analyzer.

Modified:
    cfe/trunk/lib/Sema/SemaExprObjC.cpp

Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=123482&r1=123481&r2=123482&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Fri Jan 14 16:31:34 2011
@@ -684,7 +684,6 @@
       Diag(NameLoc, diag::err_unknown_receiver_suggest)
         << Name << Corrected
         << FixItHint::CreateReplacement(SourceRange(NameLoc), "super");
-      Name = Corrected.getAsIdentifierInfo();
       return ObjCSuperMessage;
     }
   }





More information about the cfe-commits mailing list