mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
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:
parent
885ce84ab8
commit
0a249a8ae5
@ -402,7 +402,8 @@ public:
|
|||||||
}
|
}
|
||||||
Value *CreateGlobalString(const char *Str = "", const char *Name = "") {
|
Value *CreateGlobalString(const char *Str = "", const char *Name = "") {
|
||||||
Constant *StrConstant = Context.getConstantArray(Str, true);
|
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(),
|
StrConstant->getType(),
|
||||||
true,
|
true,
|
||||||
GlobalValue::InternalLinkage,
|
GlobalValue::InternalLinkage,
|
||||||
|
Loading…
Reference in New Issue
Block a user