# HG changeset patch # User Christian Kamm # Date 1217960624 -7200 # Node ID 18480579dc0443536ba4be27e0099028a6f3cea0 # Parent fc12214ba4a1405a1e5e78d0cba3a7429728be9e Use llvmdc helpers for store and bitcast in fp80 padding init code. diff -r fc12214ba4a1 -r 18480579dc04 gen/llvmhelpers.cpp --- a/gen/llvmhelpers.cpp Tue Aug 05 20:10:12 2008 +0200 +++ b/gen/llvmhelpers.cpp Tue Aug 05 20:23:44 2008 +0200 @@ -94,9 +94,9 @@ if(lltype == LLType::X86_FP80Ty) { llvm::AllocaInst* alloca = new llvm::AllocaInst(lltype, name, gIR->topallocapoint()); - LLValue* castv = new llvm::BitCastInst(alloca, getPtrToType(LLType::Int16Ty), "fp80toi16", gIR->scopebb()); + LLValue* castv = DtoBitCast(alloca, getPtrToType(LLType::Int16Ty), "fp80toi16"); LLValue* padding = DtoGEPi1(castv, 5, "fp80padding"); - new llvm::StoreInst(llvm::Constant::getNullValue(LLType::Int16Ty), padding, gIR->scopebb()); + DtoStore(llvm::Constant::getNullValue(LLType::Int16Ty), padding); return alloca; }