[llvm-commits] [llvm] r75084 - /llvm/trunk/include/llvm/Support/IRBuilder.h

Jeffrey Yasskin jyasskin at google.com
Wed Jul 8 17:52:52 PDT 2009


Author: jyasskin
Date: Wed Jul  8 19:52:44 2009
New Revision: 75084

URL: http://llvm.org/viewvc/llvm-project?rev=75084&view=rev
Log:
Work around an ICE in gcc-4.2.4.

Modified:
    llvm/trunk/include/llvm/Support/IRBuilder.h

Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=75084&r1=75083&r2=75084&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Wed Jul  8 19:52:44 2009
@@ -402,7 +402,8 @@
   }
   Value *CreateGlobalString(const char *Str = "", const char *Name = "") {
     Constant *StrConstant = Context.getConstantArray(Str, true);
-    GlobalVariable *gv = new GlobalVariable(*BB->getParent()->getParent(),
+    Module &M = *BB->getParent()->getParent();
+    GlobalVariable *gv = new GlobalVariable(M,
                                             StrConstant->getType(),
                                             true,
                                             GlobalValue::InternalLinkage,





More information about the llvm-commits mailing list