mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Initialize with the correct constant type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17270 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8660678631
commit
2f48686307
@ -125,8 +125,9 @@ bool LowerGC::doInitialization(Module &M) {
|
||||
if (RootChain == 0) {
|
||||
// If the root chain does not exist, insert a new one with linkonce
|
||||
// linkage!
|
||||
RootChain = new GlobalVariable(PRLTy, false, GlobalValue::LinkOnceLinkage,
|
||||
Constant::getNullValue(RootListTy),
|
||||
RootChain = new GlobalVariable(PRLTy, false,
|
||||
GlobalValue::LinkOnceLinkage,
|
||||
Constant::getNullValue(PRLTy),
|
||||
"llvm_gc_root_chain", &M);
|
||||
} else if (RootChain->hasExternalLinkage() && RootChain->isExternal()) {
|
||||
RootChain->setInitializer(Constant::getNullValue(PRLTy));
|
||||
|
Loading…
Reference in New Issue
Block a user