[cfe-commits] r78519 - /cfe/trunk/lib/CodeGen/CGCXX.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Aug 8 16:43:26 PDT 2009


Author: d0k
Date: Sat Aug  8 18:43:26 2009
New Revision: 78519

URL: http://llvm.org/viewvc/llvm-project?rev=78519&view=rev
Log:
Older GCCs don't have vector::data().

Modified:
    cfe/trunk/lib/CodeGen/CGCXX.cpp

Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=78519&r1=78518&r2=78519&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Sat Aug  8 18:43:26 2009
@@ -106,7 +106,7 @@
                            "__cxx_global_initialization", &TheModule);
  
   CodeGenFunction(*this).GenerateCXXGlobalInitFunc(Fn,
-                                                   CXXGlobalInits.data(),
+                                                   &CXXGlobalInits[0],
                                                    CXXGlobalInits.size());
   AddGlobalCtor(Fn);
 }





More information about the cfe-commits mailing list