Mercurial > projects > ldc
changeset 481:18480579dc04
Use llvmdc helpers for store and bitcast in fp80 padding init code.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 05 Aug 2008 20:23:44 +0200 |
parents | fc12214ba4a1 |
children | aa8c050dfd19 |
files | gen/llvmhelpers.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; }