diff --git a/projects/Stacker/lib/Makefile b/projects/Stacker/lib/Makefile new file mode 100644 index 00000000000..6973e5be662 --- /dev/null +++ b/projects/Stacker/lib/Makefile @@ -0,0 +1,20 @@ +##===- projects/sample/Makefile ----------------------------*- Makefile -*-===## +# +# This is a sample Makefile for a project that uses LLVM. +# +##===----------------------------------------------------------------------===## + +# +# Indicates our relative path to the top of the project's root directory. +# +LEVEL = ../../.. + +# +# Directories that needs to be built. +# +DIRS = compiler runtime + +# +# Include the Master Makefile that knows how to build all. +# +include $(LEVEL)/Makefile.common diff --git a/projects/Stacker/lib/compiler/StackerCompiler.cpp b/projects/Stacker/lib/compiler/StackerCompiler.cpp index 6ebcae9b365..4cd06461030 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 );