aboutsummaryrefslogtreecommitdiff
path: root/projects/Stacker/lib/compiler
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-23 18:06:37 +0000
committerChris Lattner <sabre@nondot.org>2003-11-23 18:06:37 +0000
commitc7afc06316d0741e2c60c4330d3ef14868be136a (patch)
tree190ba768523d91a7549d5b4d22f96a2391050a17 /projects/Stacker/lib/compiler
parent767a1e462dc281965fc3df2316f209bf2aca68e0 (diff)
Fix these assertions:
stkrc -e -f -o testing.bc testing.st Global is external, but doesn't have external linkage! [1024 x int]* %_stack_ Global is external, but doesn't have external linkage! long* %_index_ Broken module found, compilation aborted! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/Stacker/lib/compiler')
-rw-r--r--projects/Stacker/lib/compiler/StackerCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/Stacker/lib/compiler/StackerCompiler.cpp b/projects/Stacker/lib/compiler/StackerCompiler.cpp
index 6ebcae9b36..4cd0646103 100644
--- a/projects/Stacker/lib/compiler/StackerCompiler.cpp
+++ b/projects/Stacker/lib/compiler/StackerCompiler.cpp
@@ -132,7 +132,7 @@ StackerCompiler::compile(
/*type=*/ stack_type,
/*isConstant=*/ false,
/*Linkage=*/ GlobalValue::AppendingLinkage,
- /*initializer=*/0,
+ /*initializer=*/Constant::getNullValue(stack_type),
/*name=*/ "_stack_",
/*parent=*/ TheModule
);
@@ -144,7 +144,7 @@ StackerCompiler::compile(
/*type=*/Type::LongTy,
/*isConstant=*/false,
/*Linkage=*/GlobalValue::LinkOnceLinkage,
- /*initializer=*/0,
+ /*initializer=*/Constant::getNullValue(Type::LongTy),
/*name=*/"_index_",
/*parent=*/TheModule
);