diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-27 03:55:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-27 03:55:24 +0000 |
commit | 845afe9b20cbdb2227fc5a4d18842a3e1ca0ba91 (patch) | |
tree | f3cd3fc556cb51434189ecdd1e1d1ac50ada6af9 /llvm/lib/Transforms/Scalar/LowerGC.cpp | |
parent | d94bb339117017b40db3c93e46abbff4c5672a86 (diff) | |
download | bcm5719-llvm-845afe9b20cbdb2227fc5a4d18842a3e1ca0ba91.tar.gz bcm5719-llvm-845afe9b20cbdb2227fc5a4d18842a3e1ca0ba91.zip |
Initialize with the correct constant type
llvm-svn: 17270
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LowerGC.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LowerGC.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerGC.cpp b/llvm/lib/Transforms/Scalar/LowerGC.cpp index ee31688f946..b3463340c10 100644 --- a/llvm/lib/Transforms/Scalar/LowerGC.cpp +++ b/llvm/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)); |