Mercurial > projects > ldc
comparison ir/irlandingpad.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 | d8357f7004ca |
children | d97b017a8aef |
comparison
equal
deleted
inserted
replaced
478:b657298222d9 | 479:672eb4893b55 |
---|---|
185 { | 185 { |
186 if(!catch_var) | 186 if(!catch_var) |
187 { | 187 { |
188 Logger::println("Making new catch var"); | 188 Logger::println("Making new catch var"); |
189 const LLType* objectTy = DtoType(ClassDeclaration::object->type); | 189 const LLType* objectTy = DtoType(ClassDeclaration::object->type); |
190 catch_var = new llvm::AllocaInst(objectTy,"catchvar",gIR->topallocapoint()); | 190 catch_var = DtoAlloca(objectTy,"catchvar"); |
191 } | 191 } |
192 return catch_var; | 192 return catch_var; |
193 } | 193 } |