[llvm-commits] [128029] Fixing paste error so noinline uses the right vector.

lattner at apple.com lattner at apple.com
Tue Jun 5 22:58:44 PDT 2007


Revision: 128029
Author:   lattner
Date:     2007-06-05 22:58:43 -0700 (Tue, 05 Jun 2007)

Log Message:
-----------
Fixing paste error so noinline uses the right vector.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-backend.cpp

Modified: apple-local/branches/llvm/gcc/llvm-backend.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-06-06 00:56:14 UTC (rev 128028)
+++ apple-local/branches/llvm/gcc/llvm-backend.cpp	2007-06-06 05:58:43 UTC (rev 128029)
@@ -479,7 +479,7 @@
   if (!AttributeNoinlineFunctions.empty()) {
     const Type *SBP= PointerType::get(Type::Int8Ty);
     ArrayType *AT = ArrayType::get(SBP, AttributeNoinlineFunctions.size());
-    Constant *Init = ConstantArray::get(AT, AttributeUsedGlobals);
+    Constant *Init = ConstantArray::get(AT, AttributeNoinlineFunctions);
     GlobalValue *gv = new GlobalVariable(AT, false, 
                                         GlobalValue::AppendingLinkage, Init,
                                         "llvm.noinline", TheModule);





More information about the llvm-commits mailing list