diff gen/asmstmt.cpp @ 533:2fe2d4518618

Reverted some changes in the Tango patch, splitting asm block is simply not supported by llvm.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 24 Aug 2008 16:51:17 +0200
parents 672eb4893b55
children c7d7e2282ba3
line wrap: on
line diff
--- a/gen/asmstmt.cpp	Thu Aug 21 15:35:39 2008 +0200
+++ b/gen/asmstmt.cpp	Sun Aug 24 16:51:17 2008 +0200
@@ -177,6 +177,9 @@
     Logger::println("AsmStatement::toIR(): %s", loc.toChars());
     LOG_SCOPE;
 
+    // sanity check
+    assert(irs->func()->decl->inlineAsm);
+
     // get asm block
     IRAsmBlock* asmblock = irs->asmBlock;
     assert(asmblock);