diff 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
line wrap: on
line diff
--- a/ir/irlandingpad.cpp	Wed May 13 18:08:40 2009 +0200
+++ b/ir/irlandingpad.cpp	Thu May 14 13:26:40 2009 +0200
@@ -206,8 +206,7 @@
     if(!catch_var)
     {
         Logger::println("Making new catch var");
-        const LLType* objectTy = DtoType(ClassDeclaration::object->type);
-        catch_var = DtoAlloca(objectTy,"catchvar");
+        catch_var = DtoAlloca(ClassDeclaration::object->type, "catchvar");
     }
     return catch_var;
 }