[cfe-commits] r90570 - /cfe/trunk/lib/CodeGen/CGVtable.cpp

Anders Carlsson andersca at mac.com
Fri Dec 4 08:22:27 PST 2009


Author: andersca
Date: Fri Dec  4 10:22:27 2009
New Revision: 90570

URL: http://llvm.org/viewvc/llvm-project?rev=90570&view=rev
Log:
Use a different ConstantArray::get.

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

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

==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Fri Dec  4 10:22:27 2009
@@ -1115,7 +1115,8 @@
     if (CreateDefinition) {
       llvm::ArrayType *ntype = 
         llvm::ArrayType::get(Ptr8Ty, b.getVtable().size());
-      C = llvm::ConstantArray::get(ntype, b.getVtable());
+      C = llvm::ConstantArray::get(ntype, &b.getVtable()[0], 
+                                   b.getVtable().size());
       linktype = llvm::GlobalValue::LinkOnceODRLinkage;
       if (LayoutClass->isInAnonymousNamespace())
         linktype = llvm::GlobalValue::InternalLinkage;





More information about the cfe-commits mailing list