Commit 31d1f2c3 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed #kumi2-1908

Requires complete offline-testing!!!
parent a0bb05e9
...@@ -1880,7 +1880,8 @@ llvm::Value * LLVMGenerator::createConstant(llvm::IRBuilder<> & builder, const A ...@@ -1880,7 +1880,8 @@ llvm::Value * LLVMGenerator::createConstant(llvm::IRBuilder<> & builder, const A
arg = builder.CreateGlobalStringPtr(strval); arg = builder.CreateGlobalStringPtr(strval);
func = kumirCreateString_; func = kumirCreateString_;
} }
llvm::Value * tmp = CreateAlloca(builder, ty, CString(), allocaPlace); // llvm::Value * tmp = CreateAlloca(builder, ty, CString(), allocaPlace);
llvm::Value * tmp = CreateAlloca(builder, ty, CString(), FunctionBegin);
// llvm::Value * tmp = builder.CreateAlloca(ty); // llvm::Value * tmp = builder.CreateAlloca(ty);
result = builder.CreateCall2(func, tmp, arg); result = builder.CreateCall2(func, tmp, arg);
Q_ASSERT(result); Q_ASSERT(result);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment