aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-27 03:55:24 +0000
committerChris Lattner <sabre@nondot.org>2004-10-27 03:55:24 +0000
commit2f48686307ba98dfe58ac43e62b278c904d471f2 (patch)
treefa43d74983ce5d70d39eb0db731d00ccfc3b3d01
parent8660678631344690b25e06e136b61d9aff4b5b39 (diff)
Initialize with the correct constant type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17270 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/LowerGC.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LowerGC.cpp b/lib/Transforms/Scalar/LowerGC.cpp
index ee31688f94..b3463340c1 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));