comparison ir/irlandingpad.cpp @ 1350:15e9762bb620

Adds explicit alignment information for alloca instructions in general, there's a few cases that still needs to be looked at but this should catch the majority. Fixes ticket #293 .
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Thu, 14 May 2009 13:26:40 +0200
parents 79758fd2f48a
children 3f5ea912149d
comparison
equal deleted inserted replaced
1349:a376776e2301 1350:15e9762bb620
204 LLValue* IRLandingPad::getExceptionStorage() 204 LLValue* IRLandingPad::getExceptionStorage()
205 { 205 {
206 if(!catch_var) 206 if(!catch_var)
207 { 207 {
208 Logger::println("Making new catch var"); 208 Logger::println("Making new catch var");
209 const LLType* objectTy = DtoType(ClassDeclaration::object->type); 209 catch_var = DtoAlloca(ClassDeclaration::object->type, "catchvar");
210 catch_var = DtoAlloca(objectTy,"catchvar");
211 } 210 }
212 return catch_var; 211 return catch_var;
213 } 212 }