Mercurial > projects > ldc
diff gen/asmstmt.cpp @ 479:672eb4893b55
Move AllocaInst creation into DtoAlloca helper. Will enable special zero-init of fp80 reals' padding.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 05 Aug 2008 19:28:19 +0200 |
parents | 44daf304421c |
children | 2fe2d4518618 |
line wrap: on
line diff
--- a/gen/asmstmt.cpp Tue Aug 05 08:08:00 2008 +0200 +++ b/gen/asmstmt.cpp Tue Aug 05 19:28:19 2008 +0200 @@ -535,7 +535,7 @@ outSetterStmt->code += asmGotoEndLabel.str()+": ; "; // create storage for and initialize the temporary - jump_target = new llvm::AllocaInst(llvm::IntegerType::get(32), "__llvm_jump_target", p->topallocapoint()); + jump_target = DtoAlloca(LLType::Int32Ty, "__llvm_jump_target"); gIR->ir->CreateStore(DtoConstUint(0), jump_target); // setup variable for output from asm outSetterStmt->out_c = "=*m,";