diff gen/asmstmt.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 7d28dcbff23e
children 2292878925f4
line wrap: on
line diff
--- a/gen/asmstmt.cpp	Wed May 13 18:08:40 2009 +0200
+++ b/gen/asmstmt.cpp	Thu May 14 13:26:40 2009 +0200
@@ -600,7 +600,7 @@
             outSetterStmt->code += asmGotoEndLabel.str()+":\n";
 
             // create storage for and initialize the temporary
-            jump_target = DtoAlloca(LLType::Int32Ty, "__llvm_jump_target");
+            jump_target = DtoAlloca(Type::tint32, "__llvm_jump_target");
             gIR->ir->CreateStore(DtoConstUint(0), jump_target);
             // setup variable for output from asm
             outSetterStmt->out_c = "=*m,";