mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Initialize with the correct constant type
llvm-svn: 17270
This commit is contained in:
parent
fd26f5b69e
commit
abfae1c72e
@ -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