search for: i32referencing

Displaying 2 results from an estimated 2 matches for "i32referencing".

2010 Feb 16
3
[LLVMdev] Creating a global variable in JIT context
...Constant *zerov = Constant::getIntegerValue(type, APInt(32, 0)); V = new GlobalVariable(getGlobalContext(), type, 0, GlobalValue::PrivateLinkage, zerov, name); And these are the error messages given by verifyFunction: Function return type does not match operand type of return inst! ret i32* @x i32Referencing global in another module! ret i32* @xBroken module found, compilation aborted! Any idea of what I might be doing wrong? Is this the right way to be going about it in the first place?
2010 Feb 16
0
[LLVMdev] Creating a global variable in JIT context
...Value(type, APInt(32, 0)); > V = new GlobalVariable(getGlobalContext(), type, 0, > GlobalValue::PrivateLinkage, zerov, name); > > And these are the error messages given by verifyFunction: > > Function return type does not match operand type of return inst! > ret i32* @x i32Referencing global in another module! > ret i32* @xBroken module found, compilation aborted! > > Any idea of what I might be doing wrong? Is this the right way to be > going about it in the first place? > _______________________________________________ > LLVM Developers mailing list > LLV...