[cfe-commits] [libcxx] r170967 - /libcxx/trunk/src/locale.cpp

Chad Rosier mcrosier at apple.com
Fri Dec 21 16:12:05 PST 2012


Author: mcrosier
Date: Fri Dec 21 18:12:05 2012
New Revision: 170967

URL: http://llvm.org/viewvc/llvm-project?rev=170967&view=rev
Log:
Remove redundant inits.  Patch by Eitan Adler.

Modified:
    libcxx/trunk/src/locale.cpp

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=170967&r1=170966&r2=170967&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Fri Dec 21 18:12:05 2012
@@ -2641,7 +2641,6 @@
                        codecvt_mode mode = codecvt_mode(0))
 {
     const uint8_t* frm_nxt = frm;
-    frm_nxt = frm;
     if (mode & consume_header)
     {
         if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF)
@@ -2774,7 +2773,6 @@
                        codecvt_mode mode = codecvt_mode(0))
 {
     const uint8_t* frm_nxt = frm;
-    frm_nxt = frm;
     if (mode & consume_header)
     {
         if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFF && frm_nxt[1] == 0xFE)
@@ -2869,7 +2867,6 @@
                        codecvt_mode mode = codecvt_mode(0))
 {
     const uint8_t* frm_nxt = frm;
-    frm_nxt = frm;
     if (mode & consume_header)
     {
         if (frm_end-frm_nxt >= 2 && frm_nxt[0] == 0xFE && frm_nxt[1] == 0xFF)





More information about the cfe-commits mailing list