From 2f48686307ba98dfe58ac43e62b278c904d471f2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Oct 2004 03:55:24 +0000 Subject: [PATCH] Initialize with the correct constant type git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17270 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LowerGC.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Scalar/LowerGC.cpp b/lib/Transforms/Scalar/LowerGC.cpp index ee31688f946..b3463340c10 100644 --- a/lib/Transforms/Scalar/LowerGC.cpp +++ b/lib/Transforms/Scalar/LowerGC.cpp @@ -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));