Work around an ICE in gcc-4.2.4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75084 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeffrey Yasskin 2009-07-09 00:52:44 +00:00
parent 885ce84ab8
commit 0a249a8ae5

View File

@ -402,7 +402,8 @@ public:
}
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,