[llvm-commits] CVS: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 23 12:07:12 PST 2003


Changes in directory llvm/projects/Stacker/lib/compiler:

StackerCompiler.cpp updated: 1.1 -> 1.2

---
Log message:

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!




---
Diffs of the changes:  (+2 -2)

Index: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp
diff -u llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.1 llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.2
--- llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.1	Sun Nov 23 11:52:55 2003
+++ llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp	Sun Nov 23 12:06:37 2003
@@ -132,7 +132,7 @@
 	    /*type=*/ stack_type, 
 	    /*isConstant=*/ false, 
 	    /*Linkage=*/ GlobalValue::AppendingLinkage, 
-	    /*initializer=*/0, 
+	    /*initializer=*/Constant::getNullValue(stack_type), 
 	    /*name=*/ "_stack_",
 	    /*parent=*/ TheModule 
 	);
@@ -144,7 +144,7 @@
 	    /*type=*/Type::LongTy, 
 	    /*isConstant=*/false,
 	    /*Linkage=*/GlobalValue::LinkOnceLinkage, 
-	    /*initializer=*/0, 
+	    /*initializer=*/Constant::getNullValue(Type::LongTy), 
 	    /*name=*/"_index_",
 	    /*parent=*/TheModule
 	);





More information about the llvm-commits mailing list