Mercurial > projects > ldc
comparison gen/toir.cpp @ 281:f5f97ca47b33 trunk
[svn r302] Make HaltExps and assert(0) generate an assert message again instead of using llvm's trap intrinsic.
author | ChristianK |
---|---|
date | Fri, 20 Jun 2008 23:38:51 +0200 |
parents | 665b81613475 |
children | 74348f162225 |
comparison
equal
deleted
inserted
replaced
280:10554729bd02 | 281:f5f97ca47b33 |
---|---|
2228 DValue* HaltExp::toElem(IRState* p) | 2228 DValue* HaltExp::toElem(IRState* p) |
2229 { | 2229 { |
2230 Logger::print("HaltExp::toElem: %s\n", toChars()); | 2230 Logger::print("HaltExp::toElem: %s\n", toChars()); |
2231 LOG_SCOPE; | 2231 LOG_SCOPE; |
2232 | 2232 |
2233 #if 0 | 2233 #if 1 |
2234 DtoAssert(&loc, NULL); | 2234 DtoAssert(&loc, NULL); |
2235 #else | 2235 #else |
2236 // call the new (?) trap intrinsic | 2236 // call the new (?) trap intrinsic |
2237 p->ir->CreateCall(GET_INTRINSIC_DECL(trap),""); | 2237 p->ir->CreateCall(GET_INTRINSIC_DECL(trap),""); |
2238 #endif | 2238 #endif |