From 14c3e022e4fe75fc307d9c512986eccb03db35ba Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 5 Aug 2008 20:23:44 +0200 Subject: [PATCH] Use llvmdc helpers for store and bitcast in fp80 padding init code. --- gen/llvmhelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index 634f9498..397c8937 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -94,9 +94,9 @@ llvm::AllocaInst* DtoAlloca(const LLType* lltype, const std::string& name) 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; }